[PATCH] fastboot: only look up real partition names when no alias exists
Tom Rini
trini at konsulko.com
Fri Jan 28 21:15:33 CET 2022
On Thu, Dec 16, 2021 at 11:26:38AM +0100, Matthias Schiffer wrote:
> 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 at ew.tq-group.com>
> Reviewed-by: Sean Anderson <sean.anderson at seco.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220128/70318744/attachment.sig>
More information about the U-Boot
mailing list