Skip to content
Commit 4cc9699b authored by Tom Rini's avatar Tom Rini
Browse files

common: env_nand: Ensure that we have nand_info[0] prior to use



Now that nand_info[] is an array of pointers we need to ensure that it's
been populated prior to use.  We may for example have ENV in NAND set in
configurations that run on boards with and without NAND (where default
env is fine enough, such as omap3_beagle and beagleboard (NAND) vs
beagle xM (no NAND)).

Fixes: b616d9b0 ("nand: Embed mtd_info in struct nand_chip")
Cc: Scott Wood <oss@buserror.net>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Acked-by: default avatarScott Wood <oss@buserror.net>
parent 183923d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment