]> git.dujemihanovic.xyz Git - u-boot.git/commit
fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>
Wed, 8 Dec 2021 14:33:11 +0000 (15:33 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 20 Dec 2021 14:21:48 +0000 (09:21 -0500)
commit08cf1a5e6995697bcf2405ae50826634bc43d78a
treefa2b1ba3c24d2d099ddf517b1a3b8ca4b47a0b65
parent1cd75ceae563f87aba9f16a83544c228b811bc97
fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use

Commit "fw_setenv: lock the flash only if it was locked before"
checks for Locked status with uninitialized erase data.
Address by moving the test for MEMISLOCKED.

Fixes: 8a726b852502 ("fw_setenv: lock the flash only if it was locked before")
Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
tools/env/fw_env.c