svn commit: r325447 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sun Nov 5 20:03:59 UTC 2017


Author: kib
Date: Sun Nov  5 20:03:57 2017
New Revision: 325447
URL: https://svnweb.freebsd.org/changeset/base/325447

Log:
  Zero the structure instead of the pointer to it.
  
  Reported by:	Don Morris <Don.Morris at dell.com>
  MFC after:	4 days

Modified:
  head/sys/amd64/amd64/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Sun Nov  5 20:01:00 2017	(r325446)
+++ head/sys/amd64/amd64/pmap.c	Sun Nov  5 20:03:57 2017	(r325447)
@@ -2915,7 +2915,7 @@ reclaim_pv_chunk(pmap_t locked_pmap, struct rwlock **l
 	PG_G = PG_A = PG_M = PG_RW = 0;
 	SLIST_INIT(&free);
 	bzero(&pc_marker_b, sizeof(pc_marker_b));
-	bzero(&pc_marker_end, sizeof(pc_marker_end));
+	bzero(&pc_marker_end_b, sizeof(pc_marker_end_b));
 	pc_marker = (struct pv_chunk *)&pc_marker_b;
 	pc_marker_end = (struct pv_chunk *)&pc_marker_end_b;
 


More information about the svn-src-head mailing list