summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/efi/Protocol/SimpleFileSystem.h
diff options
context:
space:
mode:
authorIgnat Korchagin2020-07-21 23:27:08 +0200
committerMichael Brown2020-07-22 13:54:18 +0200
commitb76052335788d0ad2c4b0bded116c3b02dd4bbc2 (patch)
treecf81b538095e393dc6105bcbe340fbac89ec1570 /src/include/ipxe/efi/Protocol/SimpleFileSystem.h
parent[cmdline] Add "--timeout" parameter to "ifconf" command (diff)
downloadipxe-b76052335788d0ad2c4b0bded116c3b02dd4bbc2.tar.gz
ipxe-b76052335788d0ad2c4b0bded116c3b02dd4bbc2.tar.xz
ipxe-b76052335788d0ad2c4b0bded116c3b02dd4bbc2.zip
[efi] Check the status code from AllocatePool()
According to the latest UEFI specification (Version 2.8 Errata B) p. 7.2: "Buffer: A pointer to a pointer to the allocated buffer if the call succeeds; undefined otherwise." So implementations are obliged neither to return NULL, if the allocation fails, nor to preserve the contents of the pointer. Make the logic more reliable by checking the status code from AllocatePool() instead of checking the returned pointer for NULL Signed-off-by: Ignat Korchagin <ignat@cloudflare.com> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/Protocol/SimpleFileSystem.h')
0 files changed, 0 insertions, 0 deletions