[U-Boot] env: sf: fix environment in SPI NOR
Tom Rini
trini at konsulko.com
Sat Jan 19 02:54:07 UTC 2019
On Fri, Jan 18, 2019 at 10:45:56AM +0100, Heiko Schocher wrote:
> commit 9a9d66f5eff0 ("env: add spi_flash_read_env function")
>
> breaks Environment functionality, as it reads only
> until 2 \0 are found, but fills the buffer with 0x0
> instead 0xff which leads in an incorrect crc sum.
>
> Fix: init the read buffer with 0xff instead 0x00
>
> Signed-off-by: Heiko Schocher <hs at denx.de>
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: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190118/2a77eaa6/attachment.sig>
More information about the U-Boot
mailing list