mtd: maps: sa1100-flash: potential NULL dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Jul 2016 11:06:30 +0000 (14:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Sep 2016 08:18:37 +0000 (10:18 +0200)
commit45987838305b660f44b6edffc8b653361bef7390
tree71acb20736c9a713be3feca8efde086dabbef654
parent3f5d8326a870729ae21aa0a6b132cf8d9e9fcc1e
mtd: maps: sa1100-flash: potential NULL dereference

commit dc01a28d80a42cef08c94dfc595565aaebe46d15 upstream.

We check for NULL but then dereference "info->mtd" on the next line.

Fixes: 72169755cf36 ('mtd: maps: sa1100-flash: show parent device in sysfs')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/maps/sa1100-flash.c