diff options
Diffstat (limited to 'accel-pppd/triton/mempool.c')
-rw-r--r-- | accel-pppd/triton/mempool.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/accel-pppd/triton/mempool.c b/accel-pppd/triton/mempool.c index 1ee00f31..4a3ec8b0 100644 --- a/accel-pppd/triton/mempool.c +++ b/accel-pppd/triton/mempool.c @@ -53,8 +53,8 @@ struct _item_t }; static LIST_HEAD(pools); -static spinlock_t pools_lock = SPINLOCK_INITIALIZER; -static spinlock_t mmap_lock = SPINLOCK_INITIALIZER; +static spinlock_t pools_lock; +static spinlock_t mmap_lock; static void *mmap_ptr; static void *mmap_endptr; @@ -343,7 +343,10 @@ static void __init init(void) { sigset_t set; sigfillset(&set); - + + spinlock_init(&pools_lock); + spinlock_init(&mmap_lock); + struct sigaction sa = { .sa_handler = sigclean, .sa_mask = set, |