Assume bios parameters are wrong/missing if any of the parameters are 0.
This commit is contained in:
parent
ed920a691d
commit
ad93329236
|
@ -1026,7 +1026,7 @@ PRIVATE int w_identify()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wn->lcylinders == 0) {
|
if (wn->lcylinders == 0 || wn->lheads == 0 || wn->lsectors == 0) {
|
||||||
/* No BIOS parameters? Then make some up. */
|
/* No BIOS parameters? Then make some up. */
|
||||||
wn->lcylinders = wn->pcylinders;
|
wn->lcylinders = wn->pcylinders;
|
||||||
wn->lheads = wn->pheads;
|
wn->lheads = wn->pheads;
|
||||||
|
|
Loading…
Reference in a new issue