Re: [PATCH] media: staging: media: omap4iss: Fix null dereference for iss
From: Greg Kroah-Hartman
Date: Thu Dec 29 2022 - 02:15:15 EST
On Wed, Dec 28, 2022 at 11:19:54PM +0100, Tanmay wrote:
> Hi Laurent,
>
> Thank you. I will take care of the wrapped lines. I haven't personally seen
> it return Null so yes
> in the best scenario it is a speculation but in the worst scenario it
> shouldn't hurt.
We do not add checks for when things are "impossible" to hit, otherwise
the kernel would be full of unneeded and useless checks everywhere.
Only test for things that can actually happen please.
thanks,
greg k-h