Re: [PATCH] media: coda: Add check for kmalloc

From: Philipp Zabel
Date: Fri Dec 16 2022 - 12:34:03 EST


On Do, 2022-11-17 at 15:02 +0800, Jiasheng Jiang wrote:
> As the kmalloc may return NULL pointer,
> it should be better to check the return value
> in order to avoid NULL poineter dereference,
> same as the others.
>
> Fixes: cb1d3a336371 ("[media] coda: add CODA7541 JPEG support")
> Signed-off-by: Jiasheng Jiang <jiasheng@xxxxxxxxxxx>

Reviewed-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>

regards
Philipp