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:
parent
a5c21394e3
commit
ea6ff0649f
@ -282,6 +282,11 @@ g_bde_map_sector(struct g_bde_work *wp)
|
|||||||
|
|
||||||
/* restrict length to that zone */
|
/* restrict length to that zone */
|
||||||
len = kp->zone_cont - zoff;
|
len = kp->zone_cont - zoff;
|
||||||
|
|
||||||
|
/* ... and in general */
|
||||||
|
if (len > DFLTPHYS)
|
||||||
|
len = DFLTPHYS;
|
||||||
|
|
||||||
if (len < wp->length)
|
if (len < wp->length)
|
||||||
wp->length = len;
|
wp->length = len;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user