summaryrefslogtreecommitdiff
path: root/drivers/fastboot/fb_common.c
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>2021-12-16 11:26:38 +0100
committerTom Rini <trini@konsulko.com>2022-01-28 11:30:39 -0500
commit7e90f771730001f9ba749985f81103930e892eaf (patch)
tree9e15e28efddfbbb0c2cad90aefd6affca0074a36 /drivers/fastboot/fb_common.c
parent86b6a38863bebb70a65a53f93a1ffafc4a472169 (diff)
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>
Diffstat (limited to 'drivers/fastboot/fb_common.c')
0 files changed, 0 insertions, 0 deletions