x86, efi: Check table header length in efi_bgrt_init()
authorJan Beulich <JBeulich@suse.com>
Wed, 7 Nov 2012 16:46:08 +0000 (16:46 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 14 Nov 2012 16:49:34 +0000 (08:49 -0800)
commit5d6d578c170bb280db5d4779f666e456f4f82ec5
tree188f5a32ff431bbc72a3d3466fa82f562f6f110a
parent89d16665d388837b30972081d97b814be26d68a2
x86, efi: Check table header length in efi_bgrt_init()

Header length should be validated for all ACPI tables before accessing
any non-header field.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/509A9E6002000078000A7079@nat28.tlf.novell.com
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/platform/efi/efi-bgrt.c