From: Tom Rini Date: Fri, 22 Jul 2016 20:11:20 -0400 Subject: [U-Boot] [U-Boot, v5, 14/26] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init In-Reply-To: <1468348114-11442-15-git-send-email-ladis@linux-mips.org> References: <1468348114-11442-15-git-send-email-ladis@linux-mips.org> Message-ID: <20160723001120.GK14698@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, Jul 12, 2016 at 08:28:22PM +0200, Ladislav Michl wrote: > A private buffer is used to read mtdparts variable from non-relocated > environment. A pointer to that buffer is returned unconditionally, > confusing later test for variable presence in the environment. > Fix it by returning NULL when getenv_f fails. > > Signed-off-by: Ladislav Michl 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: