From: Tom Rini Date: Thu, 25 Sep 2014 10:45:59 -0400 Subject: [U-Boot] cmd_nand: Update (nand_info_t*)nand after arg_off(_size) call In-Reply-To: <1410871132-18599-1-git-send-email-lisovy@merica.cz> References: <1410871132-18599-1-git-send-email-lisovy@merica.cz> Message-ID: <20140925144559.GG25506@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 Tue, Sep 16, 2014 at 02:38:52PM +0200, Rostislav Lisovy wrote: > The arg_off() and arg_off_size() update the 'current NAND > device' variable (dev). This is then used when assigning the > (nand_info_t*)nand value. Place the assignment after the > arg_off(_size) calls to prevent using incorrect (nand_info_t*) > nand value. > > Signed-off-by: Rostislav Lisovy Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: