]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
efi-bgrt: Add error handling; inform the user when ignoring the BGRT
authorJosh Triplett <josh@joshtriplett.org>
Wed, 30 Jul 2014 19:23:32 +0000 (12:23 -0700)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 3 Oct 2014 17:40:58 +0000 (18:40 +0100)
commit1282278ee00b41f314d1bce058a6b28b1bd49c21
treec53701f6f931629699d4ec01373ebaa92ecc57e5
parent5a17dae422d7de4b776a9753cd4673a343a25b4b
efi-bgrt: Add error handling; inform the user when ignoring the BGRT

Gracefully handle failures to allocate memory for the image, which might
be arbitrarily large.

efi_bgrt_init can fail in various ways as well, usually because the
BIOS-provided BGRT structure does not match expectations.  Add
appropriate error messages rather than failing silently.

Reported-by: Srihari Vijayaraghavan <linux.bug.reporting@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=81321
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi-bgrt.c