[PATCH v2 0/3] efi_loader: Address some issues found by Smatch

Andrew Goodbody andrew.goodbody at linaro.org
Wed Jul 2 12:01:35 CEST 2025


Smatch reported that there were some unitialised variables and
dereferencing of NULL pointers. This series addresses these issues.

Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
Changes in v2:
- Address review comments on 2/3 to return EFI_UNSUPPORTED and eliminate
  the use of protocol_interface
- Collect RB tags for unchanged patches
- Link to v1: https://lore.kernel.org/r/20250701-efiloader_fix-v1-0-f3c6e0b0ae43@linaro.org

---
Andrew Goodbody (3):
      efi_loader: Prevent dereferencing NULL pointer
      efi_loader: Prevent dereference of uninitialised variable
      efi_loader: Prevent free of uninitialised pointer

 lib/efi_loader/efi_file.c | 2 +-
 lib/efi_loader/efi_http.c | 9 ++++-----
 lib/efi_loader/efi_net.c  | 2 +-
 3 files changed, 6 insertions(+), 7 deletions(-)
---
base-commit: 7027b445cc0bfb86204ecb1f1fe596f5895048d9
change-id: 20250701-efiloader_fix-63c3609c6ed8

Best regards,
-- 
Andrew Goodbody <andrew.goodbody at linaro.org>



More information about the U-Boot mailing list