]> git.baikalelectronics.ru Git - kernel.git/commit
x86, efi: Properly pre-initialize table pointers
authorJan Beulich <JBeulich@novell.com>
Tue, 5 Jul 2011 11:22:18 +0000 (12:22 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 5 Jul 2011 11:40:34 +0000 (13:40 +0200)
commitebdfee86ba6e9b7489791ff40bc45c703e77653f
tree476e13af76f035f01dee823039e3f80edf8fd3d5
parenta462ac8d5db89a1f670fcbb9df216b8ecec3b8e1
x86, efi: Properly pre-initialize table pointers

Consumers of the table pointers in struct efi check for
EFI_INVALID_TABLE_ADDR to determine validity, hence these
pointers should all be pre-initialized to this value (rather
than zero).

Noticed by the discrepancy between efivars' systab sysfs entry
showing all tables (and their pointers) despite the code
intending to only display the valid ones. No other bad effects
known, but having the various table parsing routines bogusly
access physical address zero is certainly not very desirable
(even though they're unlikely to find anything useful there).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Link: http://lkml.kernel.org/r/4E13100A020000780004C256@nat28.tlf.novell.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/platform/efi/efi.c