mtd: pxa3xx_nand: Correct null dereference
authorKevin Smith <kevin.smith@elecsyscorp.com>
Thu, 14 Jan 2016 16:01:36 +0000 (16:01 +0000)
committerScott Wood <scottwood@freescale.com>
Fri, 12 Feb 2016 23:13:42 +0000 (17:13 -0600)
commitb7d3e4a63580198237bdce989d5514476056ee16
tree24c801b3e6d6cb8e0e8efa7164fd5623ea0ef469
parent549d7c0e091de6759deef4202129a57480f6414c
mtd: pxa3xx_nand: Correct null dereference

Correct a null pointer dereference in board_nand_init().  Zeroed
memory was allocated, then immediately dereferenced.  The
dereference is completely removed, since this pointer is later
initialized in alloc_nand_resources.

Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/pxa3xx_nand.c