Skip to content

Commit 2ebb69b

Browse files
yuwatamedhefgo
authored andcommitted
boot: add missing error check
Follow-up for 661615a. Fixes CID#1468973.
1 parent 4e1ab49 commit 2ebb69b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/boot/efi/boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ static EFI_STATUS boot_windows_bitlocker(void) {
19781978
continue;
19791979

19801980
CHAR8 buf[block_io->Media->BlockSize];
1981-
block_io->ReadBlocks(block_io, block_io->Media->MediaId, 0, sizeof(buf), buf);
1981+
err = block_io->ReadBlocks(block_io, block_io->Media->MediaId, 0, sizeof(buf), buf);
19821982
if (EFI_ERROR(err))
19831983
continue;
19841984

0 commit comments

Comments
 (0)