summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_variable_tee.c
diff options
context:
space:
mode:
authorMasahisa Kojima <masahisa.kojima@linaro.org>2023-07-03 15:08:45 +0900
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-07-20 09:12:50 +0200
commit06fc19ca4de943827f5aa026f7aa9c3a05411677 (patch)
tree1475d4dbe1a3454393e0272f5fe1bb3ebe0bdf5b /lib/efi_loader/efi_variable_tee.c
parent21eb7c16ec86e239482386238ea606170ef4e90d (diff)
efi_driver: fix duplicate efiblk#0 issue
The devnum value of the blk_desc structure starts from 0, current efi_bl_create_block_device() function creates two "efiblk#0" devices for the cases that blk_find_max_devnum() returns -ENODEV and blk_find_max_devnum() returns 0(one device found in this case). This commit uses blk_next_free_devnum() instead of blk_find_max_devnum(). Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_variable_tee.c')
0 files changed, 0 insertions, 0 deletions