]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: ReallocatePool() supports NULL pointers as first argument
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Sep 2021 12:06:23 +0000 (14:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Sep 2021 20:18:17 +0000 (22:18 +0200)
commit04394aa185de1dcf76551f3fb7159b755b34acb3
treebb48bb1641fffe7407db7eae467976b29a7ce586
parentff3aa8d1e02e415e411e64a4a69bcc489ef3649f
boot: ReallocatePool() supports NULL pointers as first argument

Just like userspace realloc() the EFIlib ReallocatePool() function is
happy to use a NULL pointer as input, in which case it is equivalent to
AllocatePool(). See:

https://github.com/vathpela/gnu-efi/blob/269ef9dbc77ebec2723e0e6ae082bbca9516f5f1/lib/misc.c#L57
src/boot/efi/boot.c