- Sanitize disk parameters retrieved from GEOM, as they are not guaranteed to

have sane values. It caused sysinstall to crash when installing on certain SD
  cards.

Discussed with:		marcel
This commit is contained in:
Ulf Lilleengen 2009-02-09 21:34:06 +00:00
parent 4ad0d60bb8
commit 043767b123

View File

@ -127,6 +127,9 @@ Int_Open_Disk(const char *name, char *conftxt)
name, a, b, line);
}
/* Sanitize the parameters. */
Sanitize_Bios_Geom(d);
/*
* Calculate the number of cylinders this disk must have. If we have
* an obvious insanity, we set the number of cylinders to zero.