]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/boot/edd.c
x86 setup: correct segfault in generation of 32-bit reloc kernel
[linux-2.6-omap-h63xx.git] / arch / x86 / boot / edd.c
index 03399d64013b21459f63942c06bc6c33b803f425..d93cbc6464d0f8aa8aed3479b1b88a66993afa67 100644 (file)
@@ -167,9 +167,8 @@ void query_edd(void)
                 * Scan the BIOS-supported hard disks and query EDD
                 * information...
                 */
-               get_edd_info(devno, &ei);
-
-               if (boot_params.eddbuf_entries < EDDMAXNR) {
+               if (!get_edd_info(devno, &ei)
+                   && boot_params.eddbuf_entries < EDDMAXNR) {
                        memcpy(edp, &ei, sizeof ei);
                        edp++;
                        boot_params.eddbuf_entries++;