[U-Boot] [U-Boot, v5, 14/26] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init
Tom Rini
trini at konsulko.com
Sat Jul 23 02:11:20 CEST 2016
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 <ladis at linux-mips.org>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/9867b118/attachment.sig>
More information about the U-Boot
mailing list