u-boot/drivers/fastboot
Matthias Schiffer 7e90f77173 fastboot: only look up real partition names when no alias exists
Having U-Boot look up the passed partition name even though an alias
exists is unexpected, leading to warning messages (when the alias name
doesn't exist as a real partition name) or the use of the wrong
partition.

Change part_get_info_by_name_or_alias() to consider real partitions
names only if no alias of the same name exists, allowing to use aliases
to override the configuration for existing partition names.

Also change one use of strcpy() to strlcpy().

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
2022-01-28 11:30:39 -05:00
..
fb_command.c global: Convert simple_strtoul() with hex to hextoul() 2021-08-02 13:32:14 -04:00
fb_common.c fastboot: fix fastboot_set_reboot_flag() 2022-01-28 10:11:54 -05:00
fb_getvar.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
fb_mmc.c fastboot: only look up real partition names when no alias exists 2022-01-28 11:30:39 -05:00
fb_nand.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
Kconfig net: fastboot: make UDP port net: configurable 2022-01-15 18:54:21 +02:00
Makefile Revert "fastboot: Add default fastboot_set_reboot_flag implementation" 2021-02-07 19:22:54 +01:00