]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi: fix devpath_is_partition()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 25 Apr 2022 21:21:20 +0000 (23:21 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 29 Apr 2022 12:25:39 +0000 (14:25 +0200)
commitdd1086ac6bda9d464abc9be6a7e24a843b9bf30b
treec8abe8f94aae51a680aab5a4d58f652c47fbcf04
parent7ea79e511d308fb8aea4189d1617ee59887d3807
efi: fix devpath_is_partition()

If the path consists only of an end node, it does not refer to a partition.
Avoid returning a random value from the stack in this case.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi/efi_app.c