[PATCH v2] media: mtk-vcodec: potential dereference of null pointer
Tzung-Bi Shih
tzungbi at google.com
Tue Dec 14 21:55:47 PST 2021
On Wed, Dec 15, 2021 at 01:21:57PM +0800, Jiasheng Jiang wrote:
> The return value of devm_kzalloc() needs to be checked.
> To avoid use of null pointer in case of thefailure of alloc.
>
> Fixes: 46233e91fa24 ("media: mtk-vcodec: move firmware implementations into their own files")
> Signed-off-by: Jiasheng Jiang <jiasheng at iscas.ac.cn>
With a nit:
s/thefailure/the failure/
Reviewed-by: Tzung-Bi Shih <tzungbi at google.com>
More information about the Linux-mediatek
mailing list