]> git.baikalelectronics.ru Git - uboot.git/commit
fastboot: only look up real partition names when no alias exists
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 16 Dec 2021 10:26:38 +0000 (11:26 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Jan 2022 16:30:39 +0000 (11:30 -0500)
commitaab34cf073b59c72a1816565bf0a311bb09a9189
tree9e15e28efddfbbb0c2cad90aefd6affca0074a36
parent3e3e8ed25c53c7faec9a578495d6e42ed450d626
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>
drivers/fastboot/fb_mmc.c