[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YbmDY9PbQUlHgyPF@google.com>
Date: Wed, 15 Dec 2021 13:55:47 +0800
From: Tzung-Bi Shih <tzungbi@...gle.com>
To: Jiasheng Jiang <jiasheng@...as.ac.cn>
Cc: tiffany.lin@...iatek.com, andrew-ct.chen@...iatek.com,
mchehab@...nel.org, matthias.bgg@...il.com,
linux-media@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] media: mtk-vcodec: potential dereference of null
pointer
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@...as.ac.cn>
With a nit:
s/thefailure/the failure/
Reviewed-by: Tzung-Bi Shih <tzungbi@...gle.com>
Powered by blists - more mailing lists