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.mor...@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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to