From: Tom Rini Date: Mon, 29 Aug 2016 08:01:17 -0400 Subject: [U-Boot] [U-Boot, PATCHv3] nand: Fix set_dev checks for no device In-Reply-To: <20160824164632.em4w7n4gctvbnncd@atomide.com> References: <20160824164632.em4w7n4gctvbnncd@atomide.com> Message-ID: <20160829120117.GI8799@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 Wed, Aug 24, 2016 at 09:46:32AM -0700, Tony Lindgren wrote: > If we do nand device 0 command in u-boot on a device that has NAND support > enabled but no NAND chip, we can get data abort at least on omaps. > > Fix the issue by replacing the check with nand_info[dev] as > suggested by Scott Wood. The check for name existed before because before > the array-to-pointer conversion there was no way to directly test > nand_info[dev] for emptiness. > > Signed-off-by: Tony Lindgren > > diff --git a/cmd/nand.c b/cmd/nand.c 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: