Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Nov 2017 20:03:57 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325447 - head/sys/amd64/amd64
Message-ID:  <201711052003.vA5K3vNF045748@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;
 



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