]> git.baikalelectronics.ru Git - uboot.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)
commit34eb0be2f00d946e239548c8b39c3539368d645d
treefa2b1ba3c24d2d099ddf517b1a3b8ca4b47a0b65
parentb7456af2d4cb19b59aafda811ced3b2b93c03a09
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