]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix dp_fill() for BLKMAP, HOST, VIRTIO
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 19 Jul 2023 14:49:46 +0000 (16:49 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Jul 2023 07:12:50 +0000 (09:12 +0200)
commitdc7a2f1d9fcd642ba8c2a6d544244c7852c5f6ec
treed3dff0460d141ced1fcc439e5b811f0a392761b5
parent4f399f277cd0116944642ea7246795678fcb495f
efi_loader: fix dp_fill() for BLKMAP, HOST, VIRTIO

Do not assume that the preceding device path contains a single VenHW node.
Instead use the return value of dp_fill() which provides the address of the
next node.

Fixes: 23ad52fff4da ("efi_loader: device_path: support Sandbox's "host" devices")
Fixes: 19ecced71cfb ("efi_loader: device path for virtio block devices")
Fixes: 272ec6b45304 ("efi_loader: device_path: support blkmap devices")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_device_path.c