summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-01-13 15:57:57 +0900
committerJan Janssen <medhefgo@web.de>2022-01-13 14:17:15 +0100
commit2ebb69bc09e84c48072e8ec5faa8251dcd705282 (patch)
treee4935ad3afc7318e8cef01919cff097bb47a5fae
parent4e1ab496ae58e21b233ed7cd7fea3c8f495ef1e4 (diff)
downloadsystemd-2ebb69bc09e84c48072e8ec5faa8251dcd705282.tar.gz
boot: add missing error check
Follow-up for 661615a0afacee3545cde0a48286c0fef983f8fe. Fixes CID#1468973.
-rw-r--r--src/boot/efi/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c
index 1f1c188acd..96a41bbb50 100644
--- a/src/boot/efi/boot.c
+++ b/src/boot/efi/boot.c
@@ -1978,7 +1978,7 @@ static EFI_STATUS boot_windows_bitlocker(void) {
continue;
CHAR8 buf[block_io->Media->BlockSize];
- block_io->ReadBlocks(block_io, block_io->Media->MediaId, 0, sizeof(buf), buf);
+ err = block_io->ReadBlocks(block_io, block_io->Media->MediaId, 0, sizeof(buf), buf);
if (EFI_ERROR(err))
continue;