]> git.baikalelectronics.ru Git - kernel.git/commit
efi: libstub: drop pointless get_memory_map() call
authorArd Biesheuvel <ardb@kernel.org>
Thu, 15 Sep 2022 17:00:24 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:23:00 +0000 (13:23 +0200)
commit56a6879866a8cb821bd8b154d0e37079e59799ff
tree44d933638e7cf41ee48107af69cf7e66d8235424
parent7b18f0a3bbb69c3d3bdeefcf2c77e962704083f3
efi: libstub: drop pointless get_memory_map() call

commit a675f3657ecfcbd7609f41615e954b2d96dc52d3 upstream.

Currently, the non-x86 stub code calls get_memory_map() redundantly,
given that the data it returns is never used anywhere. So drop the call.

Cc: <stable@vger.kernel.org> # v4.14+
Fixes: 89d905412341 ("efi/arm-stub: Round up FDT allocation to mapping size")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/fdt.c