mtd: maps: sa1100-flash: potential NULL dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Jul 2016 11:06:30 +0000 (14:06 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 16 Jul 2016 01:40:25 +0000 (18:40 -0700)
commitdc01a28d80a42cef08c94dfc595565aaebe46d15
treed40529045d5a1cfcc3301ef37bcb2016485894b1
parent161aaab8a067a96b686e2429a72bfd92f6aaf363
mtd: maps: sa1100-flash: potential NULL dereference

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>
drivers/mtd/maps/sa1100-flash.c