Skip to content
Commit 6cdcdb99 authored by Andrey Borzenkov's avatar Andrey Borzenkov Committed by H. Peter Anvin
Browse files

x86 setup: fix ghost entries under /sys/firmware/edd take 3



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: default avatarAndrey Borzenkov &lt; <arvidjaar@mail.ru>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 464f04c9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment