Skip to content
Snippets Groups Projects
Commit 1282278e authored by Josh Triplett's avatar Josh Triplett Committed by Matt Fleming
Browse files

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: default avatarSrihari Vijayaraghavan <linux.bug.reporting@gmail.com>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=81321


Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 5a17dae4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment