]> git.baikalelectronics.ru Git - uboot.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)
commit61c2a4a66801ef548bf5cc4f7482c5d7c3ca69c5
treec8abe8f94aae51a680aab5a4d58f652c47fbcf04
parentf4695352482dfd4154a985bbe4ea30813ea8d146
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