x86 setup: fix ghost entries under /sys/firmware/edd take 3
authorAndrey Borzenkov <arvidjaar@newmail.ru>
Fri, 3 Oct 2008 17:08:49 +0000 (21:08 +0400)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 3 Oct 2008 17:15:29 +0000 (10:15 -0700)
Some BIOSes do not indicate error when trying to read from non-
existing device. Zero buffer before reading and check that we
possibly have valid MBR by looking for MBR magic.

This was fixed in different way for edd.S in
http://marc.info/?l=linux-kernel&m=114087765422490&w=2, but lost
again when edd.S was rewritten in C.

Signed-off-by: Andrey Borzenkov < arvidjaar@mail.ru>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

No differences found