u-boot/env
Hoyeonjiki Kim 2a0a577aad env: mmc: Correct partition comparison in mmc_offset_try_partition
The function mmc_offset_try_partition searches the MMC partition for
locating environment data, by comparing the partition names with config
"u-boot,mmc-env-parition". However, it only compares the first word-size
bytes (size of 'const char *'), which may make the function to find
unintended partition.

Correct the function not to partially compare the partition name with
config "u-boot,mmc-env-partition".

Fixes: c9e87ba665 ("env: Save environment at the end of an MMC partition")
Signed-off-by: Hoyeonjiki Kim <jigi.kim@gmail.com>
Reviewed-by: Wolfgang Denk <wd@denx.de>
2020-11-18 13:46:58 -05:00
..
attr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
callback.c make env_entry::callback conditional on !CONFIG_SPL_BUILD 2020-04-24 10:09:59 -04:00
common.c env: split env_import_redund() into 2 functions 2020-10-30 10:54:38 -04:00
eeprom.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
embedded.c env: Finish migration of common ENV options 2019-11-20 18:32:09 -05:00
env.c env: sf: fix init function behaviour 2020-11-03 10:04:25 -05:00
ext4.c env/ext4.c: allow loading from an EXT4 partition on the MMC boot device 2020-10-14 11:16:34 -04:00
fat.c mmc: remove duplicate mmc_get_env_dev() implementations 2020-10-14 11:16:34 -04:00
flags.c env: Add support for explicit write access list 2020-07-31 10:13:00 -04:00
flash.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
Kconfig env: Access Environment in SPI flashes before relocation 2020-10-30 10:54:38 -04:00
Makefile env: remove callback.o for an SPL build 2020-04-24 10:09:59 -04:00
mmc.c env: mmc: Correct partition comparison in mmc_offset_try_partition 2020-11-18 13:46:58 -05:00
nand.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
nowhere.c env: nowhere: add .load ops 2020-07-31 10:13:00 -04:00
nvram.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
onenand.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
remote.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
sata.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00
sf.c env: sf: fix init function behaviour 2020-11-03 10:04:25 -05:00
ubi.c env: Discern environment coming from external storage 2020-07-31 10:13:00 -04:00