]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: vf610: Avoid a potential NULL pointer dereference
authorAditya Pakki <pakki001@umn.edu>
Mon, 18 Mar 2019 23:24:34 +0000 (18:24 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:07 +0000 (10:21 +0200)
commit17e1492332877fed92a7f82a0c1545330278221c
tree7eebacca341754bd163d7b235cd74ad793495153
parent22107a8eadcfa665c00b77b65d7538d6bcaebfce
mtd: rawnand: vf610: Avoid a potential NULL pointer dereference

of_match_device can return NULL if there is no matching device. Avoid
a potential NULL pointer dereference by checking for the return value
and passing the error upstream.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/vf610_nfc.c