From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 15 Aug 2016 21:11:26 -0400 Subject: [U-Boot] [U-Boot, v3] common: env_nand: Ensure that we have nand_info[0] prior to use In-Reply-To: <1471280535-3897-1-git-send-email-trini@konsulko.com> References: <1471280535-3897-1-git-send-email-trini@konsulko.com> Message-ID: <20160816011126.GS5342@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Aug 15, 2016 at 01:02:15PM -0400, Tom Rini wrote: > 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: b616d9b0a708 ("nand: Embed mtd_info in struct nand_chip") > Cc: Scott Wood > Signed-off-by: Tom Rini > Acked-by: Scott Wood Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: