Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat deref the right address to get the pool_alloc...
details: https://anonhg.NetBSD.org/src/rev/3a1a42ea3543
branches: trunk
changeset: 357936:3a1a42ea3543
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Dec 04 03:05:57 2017 +0000
description:
deref the right address to get the pool_allocator.
diffstat:
usr.bin/vmstat/vmstat.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r aae161cd47a4 -r 3a1a42ea3543 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Mon Dec 04 03:05:24 2017 +0000
+++ b/usr.bin/vmstat/vmstat.c Mon Dec 04 03:05:57 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.223 2017/12/03 21:10:01 mrg Exp $ */
+/* $NetBSD: vmstat.c,v 1.224 2017/12/04 03:05:57 mrg Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.223 2017/12/03 21:10:01 mrg Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.224 2017/12/04 03:05:57 mrg Exp $");
#endif
#endif /* not lint */
@@ -968,8 +968,8 @@
uvmexp.poolpages = 0;
for (; addr != NULL; addr = TAILQ_NEXT(pp, pr_poollist)) {
deref_kptr(addr, pp, sizeof(*pp), "pool chain trashed");
- deref_kptr(addr, &pa, sizeof(pa),
- "pool_allocator trashed");
+ deref_kptr(pp->pr_alloc, &pa, sizeof(pa),
+ "pool allocator trashed");
bytes = pp->pr_npages * pa.pa_pagesz;
if ((pp->pr_roflags & PR_RECURSIVE) != 0)
bytes -= (pp->pr_nout * pp->pr_size);
Home |
Main Index |
Thread Index |
Old Index