Re: [PATCH 1/1] Preventive patch in the proc file-system to handle NULL check.

From: Luis Chamberlain
Date: Thu Aug 16 2018 - 09:17:38 EST


On Thu, Aug 16, 2018 at 03:04:13PM +0530, Srikanth K H wrote:
> If the make directory for "sys" interface fail's then its
> dereferenced without even checking for its validity which
> will lead to crash, hence added preventive code to check
> for NULL and accordingly dereference.
>
> Signed-off-by: Srikanth K H <srikanth.h@xxxxxxxxxxx>

Thanks for the patch! Do you have a reproducer or is this theoretical?
This will affect if it should go to stable or not.

Luis