x86, efivars: firmware bug workarounds should be in platform code
authorMatt Fleming <matt.fleming@intel.com>
Mon, 25 Mar 2013 09:14:30 +0000 (09:14 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 30 May 2013 13:35:10 +0000 (14:35 +0100)
commit649aeb46c8ff0aa527e73e8f847f9895c835d8cb
tree4bdd4889b47d469fd6fa6cf7a017b353bc3b0497
parent9c4254fbab06989a943eb5633cf6dd1bd6b79d6b
x86, efivars: firmware bug workarounds should be in platform code

commit a6e4d5a03e9e3587e88aba687d8f225f4f04c792 upstream.

Let's not burden ia64 with checks in the common efivars code that we're not
writing too much data to the variable store. That kind of thing is an x86
firmware bug, plain and simple.

efi_query_variable_store() provides platforms with a wrapper in which they can
perform checks and workarounds for EFI variable storage bugs.

Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/platform/efi/efi.c
drivers/firmware/efivars.c
include/linux/efi.h