Limit our requests to DFLTPHYS, this is generally a good idea for

memory-allocation purposes.  Right now it is also a very good idea
because we hit a Giant assertion in the free(9) processing if we
free something larger than 64k.
This commit is contained in:
Poul-Henning Kamp 2003-03-07 19:09:46 +00:00
parent a5c21394e3
commit ea6ff0649f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111964

View File

@ -282,6 +282,11 @@ g_bde_map_sector(struct g_bde_work *wp)
/* restrict length to that zone */
len = kp->zone_cont - zoff;
/* ... and in general */
if (len > DFLTPHYS)
len = DFLTPHYS;
if (len < wp->length)
wp->length = len;