aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2008-10-31 10:11:35 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2008-10-31 10:11:35 +0000
commitf5dfdb519f6564983e560c945e495bd598b026e7 (patch)
treec6f97f1df44fb4cf969476de15ea2052082d49c6 /sys/i386
parent7a9c4d24091f3e940f2dd4eb2804633adef1109d (diff)
downloadsrc-f5dfdb519f6564983e560c945e495bd598b026e7.tar.gz
src-f5dfdb519f6564983e560c945e495bd598b026e7.zip
Revert r184136. Instead, push the check for crashdumpmap overflow into the
MD i386 and amd64 dump code. Requested by: jhb Retested by: pho MFC after: 3 days (+ 176304 + 184136)
Notes
Notes: svn path=/head/; revision=184499
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/dump_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/dump_machdep.c b/sys/i386/i386/dump_machdep.c
index 4522dc3f7fb4..a1444f0f867b 100644
--- a/sys/i386/i386/dump_machdep.c
+++ b/sys/i386/i386/dump_machdep.c
@@ -165,7 +165,7 @@ cb_dumpdata(struct md_pa *mdp, int seqnr, void *arg)
va = 0;
pgs = mdp->md_size / PAGE_SIZE;
pa = mdp->md_start;
- maxdumppgs = di->maxiosize / PAGE_SIZE;
+ maxdumppgs = min(di->maxiosize / PAGE_SIZE, MAXDUMPPGS);
if (maxdumppgs == 0) /* seatbelt */
maxdumppgs = 1;