]> git.sur5r.net Git - u-boot/commit
efi_loader: correctly determine length of empty device path
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 16 Apr 2018 05:59:07 +0000 (07:59 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 23 Apr 2018 19:34:28 +0000 (21:34 +0200)
commitadb575124d717b57bb2abb9e63875cb23601c44b
treeadc98960ad6717a6864445223fbb7cbc57af971a
parent07836345ba6da5cdad2bbdc43923604d256645f3
efi_loader: correctly determine length of empty device path

efi_dp_size() is meant to return the device path length without the end
node.

The length of a device path containing only an end node was incorrectly
reported as 4.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_device_path.c