]> git.baikalelectronics.ru Git - kernel.git/commit
x86: check function status in EDD boot code
authorJan Beulich <jbeulich@novell.com>
Fri, 18 Jul 2008 12:35:37 +0000 (13:35 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 18 Jul 2008 21:33:17 +0000 (14:33 -0700)
commit946f9c18deb4d64a9a33380e138438d9d51f80b1
treeca3518a85672e3da4e36884139707ae6577939d5
parent4c82d012885fb48a1d99d3eaec5bc457be5aba6b
x86: check function status in EDD boot code

Without checking the return value of get_edd_info() and adding the
entry only in the success case, 6 devices show up under
/sys/firmware/edd/, no matter how many devices are actually present.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/edd.c