summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-10-31 10:14:28 +0000
committerkib <kib@FreeBSD.org>2008-10-31 10:14:28 +0000
commite200f7c9b6fc508b9497ebb976b2d97cdc95b524 (patch)
tree2303008c181c19f989b8619f95faad917629cc8f
parent37e83ace481e6bee3806133c4503bf6b4a5f902c (diff)
downloadFreeBSD-src-e200f7c9b6fc508b9497ebb976b2d97cdc95b524.zip
FreeBSD-src-e200f7c9b6fc508b9497ebb976b2d97cdc95b524.tar.gz
The file was inadvertently excluded from r184499.
-rw-r--r--sys/i386/i386/minidump_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/minidump_machdep.c b/sys/i386/i386/minidump_machdep.c
index 2daab3b..46dec2a 100644
--- a/sys/i386/i386/minidump_machdep.c
+++ b/sys/i386/i386/minidump_machdep.c
@@ -102,7 +102,7 @@ blk_write(struct dumperinfo *di, char *ptr, vm_paddr_t pa, size_t sz)
int error, i, c;
u_int maxdumpsz;
- maxdumpsz = di->maxiosize;
+ maxdumpsz = min(di->maxiosize, MAXDUMPPGS * PAGE_SIZE);
if (maxdumpsz == 0) /* seatbelt */
maxdumpsz = PAGE_SIZE;
error = 0;
OpenPOWER on IntegriCloud