View | Details | Raw Unified | Return to bug 28164
Collapse All | Expand All

(-)kern/kern_shutdown.c (-1 / +1 lines)
Lines 421-427 Link Here
421
	/*
421
	/*
422
	 * XXX should clean up checking in dumpsys() to be more like this.
422
	 * XXX should clean up checking in dumpsys() to be more like this.
423
	 */
423
	 */
424
	newdumplo = psize - Maxmem * PAGE_SIZE / DEV_BSIZE;
424
	newdumplo = psize - (Maxmem + 2) * PAGE_SIZE / DEV_BSIZE;
425
	if (newdumplo < 0)
425
	if (newdumplo < 0)
426
		return (ENOSPC);
426
		return (ENOSPC);
427
	dumpdev = dev;
427
	dumpdev = dev;
(-)kern/subr_disk.c (-1 / +1 lines)
Lines 91-97 Link Here
91
	dl = dsgetlabel(dev, dp->d_slice);
91
	dl = dsgetlabel(dev, dp->d_slice);
92
	if (!dl)
92
	if (!dl)
93
		return (ENXIO);
93
		return (ENXIO);
94
	*count = (u_long)Maxmem * PAGE_SIZE / dl->d_secsize;
94
	*count = (u_long)(Maxmem + 2) * PAGE_SIZE / dl->d_secsize;
95
	if (dumplo < 0 || 
95
	if (dumplo < 0 || 
96
	    (dumplo + *count > dl->d_partitions[dkpart(dev)].p_size))
96
	    (dumplo + *count > dl->d_partitions[dkpart(dev)].p_size))
97
		return (EINVAL);
97
		return (EINVAL);

Return to bug 28164