diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-21 17:05:13 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-21 17:05:13 +0000 |
commit | 64ec70be665ab60c9fdfc39fd7369e34e017491b (patch) | |
tree | 7084d579373f2ce2c34308c3b840fa64d1d457e9 /sys/arch | |
parent | cebccf591a6f7b3c58fed9d76772f66287ebdb8f (diff) |
Set reference count of freshly created pmap to one.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc64/powerpc64/pmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/powerpc64/pmap.c b/sys/arch/powerpc64/powerpc64/pmap.c index 9d3ab7d2588..bc1b5eb6015 100644 --- a/sys/arch/powerpc64/powerpc64/pmap.c +++ b/sys/arch/powerpc64/powerpc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.12 2020/06/21 14:31:32 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.13 2020/06/21 17:05:12 kettenis Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -759,6 +759,7 @@ pmap_create(void) pmap_t pm; pm = pool_get(&pmap_pmap_pool, PR_WAITOK | PR_ZERO); + pm->pm_refs = 1; LIST_INIT(&pm->pm_slbd); return pm; } |