Re: [PATCH] mtd: rawnand: vf610: Fix to check for NULL pointer dereference

2019-04-01 Thread Boris Brezillon
On Mon, 1 Apr 2019 17:26:51 +0200 Miquel Raynal wrote: > Hi Aditya, > > Aditya Pakki wrote on Mon, 18 Mar 2019 18:24:34 > -0500: > > > of_match_device can return NULL if there is no matching device is found. > > The patch avoids a potential NULL pointer dereference by checking for the > >

Re: [PATCH] mtd: rawnand: vf610: Fix to check for NULL pointer dereference

2019-04-01 Thread Miquel Raynal
Hi Aditya, Aditya Pakki wrote on Mon, 18 Mar 2019 18:24:34 -0500: > of_match_device can return NULL if there is no matching device is found. > The patch avoids a potential NULL pointer dereference by checking for the > return value and passing the error upstream. > > Signed-off-by: Aditya

[PATCH] mtd: rawnand: vf610: Fix to check for NULL pointer dereference

2019-03-18 Thread Aditya Pakki
of_match_device can return NULL if there is no matching device is found. The patch avoids a potential NULL pointer dereference by checking for the return value and passing the error upstream. Signed-off-by: Aditya Pakki --- drivers/mtd/nand/raw/vf610_nfc.c | 2 ++ 1 file changed, 2