x86: check function status in EDD boot code
commitf2ba93929fdb91fd806be20e959a50f7db82790e
authorJan Beulich <jbeulich@novell.com>
Fri, 18 Jul 2008 12:35:37 +0000 (18 13:35 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 18 Jul 2008 21:33:17 +0000 (18 14:33 -0700)
treeca3518a85672e3da4e36884139707ae6577939d5
parentffaa152efd02849c0c36947f533f2ee3ee55369a
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