Browse files

In sys/amd64/amd64/pmap.c, fix several gcc warnings about uninitialized

variables in reclaim_pv_chunk().

Approved by:	re (marius)
Reviewed by:	neel, kib
X-MFC-With:	r256072
  • Loading branch information...
1 parent 6e28214 commit f72bec9791c36c0f8b80579a90bca042832b795a @DimitryAndric DimitryAndric committed Oct 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 sys/amd64/amd64/pmap.c
View
1 sys/amd64/amd64/pmap.c
@@ -2705,6 +2705,7 @@ reclaim_pv_chunk(pmap_t locked_pmap, struct rwlock **lockp)
KASSERT(lockp != NULL, ("reclaim_pv_chunk: lockp is NULL"));
pmap = NULL;
m_pc = NULL;
+ PG_G = PG_A = PG_M = PG_RW = 0;
SLIST_INIT(&free);
TAILQ_INIT(&new_tail);
mtx_lock(&pv_chunks_mutex);

0 comments on commit f72bec9

Please sign in to comment.