]> git.baikalelectronics.ru Git - kernel.git/commit
x86: EFI: fix use of unitialized variable and the cache logic
authorThomas Gleixner <tglx@linutronix.de>
Tue, 12 Feb 2008 18:46:48 +0000 (19:46 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2008 15:20:35 +0000 (16:20 +0100)
commitd27a1af7fe58d26fefe09b89f748dc2dbdcbd641
tree97625e60d0901ec459d2ce245fcaaacf1bd84a4f
parentf2647fe18b38e8675568846b184f3539c683b770
x86: EFI: fix use of unitialized variable and the cache logic

Andi Kleen pointed out that the cache attribute logic is reverse in
efi_enter_virtual_mode(). This problem alone is harmless as we do not
(yet) do cache attribute conflict resolution. (This bug was not present
in the original EFI submission - I introduced it while fixing up rejects.)

While reviewing this code I noticed a second, worse problem: the use of
uninitialized md->virt_addr.

Fix both problems.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/efi.c