mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
549d7c0e09
commit
b7d3e4a635
1 changed files with 0 additions and 7 deletions
|
@ -1606,13 +1606,6 @@ void board_nand_init(void)
|
|||
if (!info)
|
||||
return;
|
||||
|
||||
/*
|
||||
* If CONFIG_SYS_NAND_SELF_INIT is defined, each driver is responsible
|
||||
* for instantiating struct nand_chip, while drivers/mtd/nand/nand.c
|
||||
* still provides a "struct mtd_info nand_info" instance.
|
||||
*/
|
||||
info->host[0]->mtd = &nand_info[0];
|
||||
|
||||
ret = pxa3xx_nand_probe(info);
|
||||
if (ret)
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue