Subject: Re: [PATCH] media: meson: add missing allocation failure check on new_buf

From: Kevin Hilman <[email-masked]>
Date: Wed, 04 Dec 2019 18:39:06 -0800

Colin King <[email-masked]> writes:

> From: Colin Ian King <[email-masked]>
>
> Currently if the allocation of new_buf fails then a null pointer
> dereference occurs when assiging new_buf->vb. Avoid this by returning
> early on a memory allocation failure as there is not much more can
> be done at this point.
>
> Addresses-Coverity: ("Dereference null return")
> Fixes: 3e7f51bd9607 ("media: meson: add v4l2 m2m video decoder driver")
> Signed-off-by: Colin Ian King <[email-masked]>

Reviewed-by: Kevin Hilman <[email-masked]>

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel