]> git.itanic.dy.fi Git - linux-stable/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:19:42 +0000 (13:19 +0200)
commitb642b9c164727956e173f0a1fdf1f2c5ba841810
treef3fd97589a4a16856e9d704aced035de5dc11708
parent897b1450abe5a67c842a5d24173ce4449ccdfa94
efi: libstub: drop pointless get_memory_map() call

commit d80ca810f096ff66f451e7a3ed2f0cd9ef1ff519 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: 24d7c494ce46 ("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