Assume bios parameters are wrong/missing if any of the parameters are 0.
This commit is contained in:
parent
ed920a691d
commit
ad93329236
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue