Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2019 18:40:46 +0000 (UTC)
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355502 - head/lib/libprocstat
Message-ID:  <201912071840.xB7IekjY066160@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougm
Date: Sat Dec  7 18:40:46 2019
New Revision: 355502
URL: https://svnweb.freebsd.org/changeset/base/355502

Log:
  Fix a type error in fixing libprocstat to be compatible with vm_map changes.
  
  Approved by: markj
  Differential Revision: https://reviews.freebsd.org/D22726

Modified:
  head/lib/libprocstat/libprocstat.c

Modified: head/lib/libprocstat/libprocstat.c
==============================================================================
--- head/lib/libprocstat/libprocstat.c	Sat Dec  7 18:16:35 2019	(r355501)
+++ head/lib/libprocstat/libprocstat.c	Sat Dec  7 18:40:46 2019	(r355502)
@@ -619,7 +619,7 @@ do_mmapped:
 
 		for (entryp = vm_map_entry_first(map);
 		    entryp != &kp->ki_vmspace->vm_map.header;
-		    entryp = vm_map_entry_succ(vmentry)) {
+		    entryp = vm_map_entry_succ(&vmentry)) {
 			if (!kvm_read_all(kd, (unsigned long)entryp, &vmentry,
 			    sizeof(vmentry))) {
 				warnx("can't read vm_map_entry at %p",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912071840.xB7IekjY066160>