summaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2020-02-20 08:55:18 +0000
committerToomas Soome <tsoome@FreeBSD.org>2020-02-20 08:55:18 +0000
commitef91a071ac534ed1293f624e4e205916da8f30a4 (patch)
tree365ce37541300fbd224524ed7ba071eaee423e44 /stand
parent8abc11f65c828a58263e4b4a8eac70fdf7082792 (diff)
downloadsrc-test2-ef91a071ac534ed1293f624e4e205916da8f30a4.tar.gz
src-test2-ef91a071ac534ed1293f624e4e205916da8f30a4.zip
Notes
Diffstat (limited to 'stand')
-rw-r--r--stand/efi/libefi/efi_driver_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stand/efi/libefi/efi_driver_utils.c b/stand/efi/libefi/efi_driver_utils.c
index 0edea5c1e0d8..e5034c2e34d6 100644
--- a/stand/efi/libefi/efi_driver_utils.c
+++ b/stand/efi/libefi/efi_driver_utils.c
@@ -52,6 +52,8 @@ connect_controllers(EFI_GUID *filter)
}
handles = malloc(hsize);
+ if (handles == NULL)
+ return (EFI_OUT_OF_RESOURCES);
nhandles = hsize / sizeof(EFI_HANDLE);
status = BS->LocateHandle(ByProtocol, filter, NULL,