]> Zhao Yanbai Git Server - minix.git/commitdiff
Assume bios parameters are wrong/missing if any of the parameters are 0.
authorBen Gras <ben@minix3.org>
Wed, 30 May 2007 16:13:52 +0000 (16:13 +0000)
committerBen Gras <ben@minix3.org>
Wed, 30 May 2007 16:13:52 +0000 (16:13 +0000)
drivers/at_wini/at_wini.c

index 5258a97ca5da86e293bc5673438aa5e0db9b6d45..7c3f9ced13fbb322c8fac7612042a1b32c40c7c6 100644 (file)
@@ -1026,7 +1026,7 @@ PRIVATE int w_identify()
 #endif
        }
 
-       if (wn->lcylinders == 0) {
+       if (wn->lcylinders == 0 || wn->lheads == 0 || wn->lsectors == 0) {
                /* No BIOS parameters?  Then make some up. */
                wn->lcylinders = wn->pcylinders;
                wn->lheads = wn->pheads;