]> www.infradead.org Git - users/jedix/linux-maple.git/commit
efi/libstub: Use __free() helper for pool deallocations
authorArd Biesheuvel <ardb@kernel.org>
Fri, 20 Dec 2024 11:04:57 +0000 (12:04 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 14 Jan 2025 07:35:27 +0000 (08:35 +0100)
commit4e23c96b1fe1a13078209394a292efe06767f3a4
tree406e2143768edde28acd06bc0b3519566399d8e6
parentad69b0b6f9954796875ee4faf6c16c9caca21999
efi/libstub: Use __free() helper for pool deallocations

Annotate some local buffer allocations as __free(efi_pool) and simplify
the associated error handling accordingly. This removes a couple of
gotos and simplifies the code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efi-stub.c
drivers/firmware/efi/libstub/x86-stub.c