]> git.baikalelectronics.ru Git - uboot.git/commit
env: make env drivers propagate env_import return value
authorSimon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Wed, 31 Jan 2018 13:47:12 +0000 (14:47 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 1 Feb 2018 13:05:53 +0000 (08:05 -0500)
commit4e004a51da72147f05418602d1c78c888b1e3b6a
tree7f872e44844c2ec406737d71a71188368e3be38a
parent9a28ce70008feb4ac854831df0fd3567a6a5a15d
env: make env drivers propagate env_import return value

For multiple env drivers to correctly implement fallback when
one environment fails to load (e.g. crc error), the return value
of env_import has to be propagated by all env driver's load
function.

Without this change, the first driver that succeeds to load an
environment with an invalid CRC return 0 (success) and no other
drivers are checked.

Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
env/eeprom.c
env/ext4.c
env/fat.c
env/flash.c
env/mmc.c
env/nand.c
env/nvram.c
env/remote.c
env/sata.c
env/ubi.c