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)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 9 Apr 2013 10:34:05 +0000 (11:34 +0100)
commita6e4d5a03e9e3587e88aba687d8f225f4f04c792
tree5159dd594f8c70ef964ec0fef74a6e8482f2606e
parentca0ba26fbbd2d81c43085df49ce0abfe34535a90
x86, efivars: firmware bug workarounds should be in platform code

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>
arch/x86/platform/efi/efi.c
drivers/firmware/efivars.c
include/linux/efi.h