Assume bios parameters are wrong/missing if any of the parameters are 0.

This commit is contained in:
Ben Gras 2007-05-30 16:13:52 +00:00
parent ed920a691d
commit ad93329236

View 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;