Avoid event counter re-insert in evcount_percpu()
authorvisa <visa@openbsd.org>
Mon, 5 Dec 2022 08:58:49 +0000 (08:58 +0000)
committervisa <visa@openbsd.org>
Mon, 5 Dec 2022 08:58:49 +0000 (08:58 +0000)
commit1e5f4b12257797b7c33c6668fcbd970c836e9c4b
tree0c4cdb181f5758173fff5b71e41b1b88787674b3
parent7e53a3c9de40871999d818f6a139f767e373291e
Avoid event counter re-insert in evcount_percpu()

This fixes evcount_list corruption that happened when evcount_percpu()
was called after evcount_init_percpu().

OK jca@ cheloha@ jmatthew@
sys/kern/subr_evcount.c