mtd: nuc900_nand: NULL dereference in nuc900_nand_enable()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Feb 2014 20:03:08 +0000 (23:03 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:27 +0000 (22:42 -0700)
commitc69dbbf3335a21aae74376d7e5db50a486d52439
tree799731962c7b5717681a4a5e0484fe5eab4e08fe
parentffdac6cdd9f4c561fc49192c1ea1570f475659e9
mtd: nuc900_nand: NULL dereference in nuc900_nand_enable()

Instead of writing to "nand->reg + REG_FMICSR" we write to "REG_FMICSR"
which is NULL and not a valid register.

Fixes: 8bff82cbc308 ('mtd: add nand support for w90p910 (v2)')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nuc900_nand.c