diff options
Diffstat (limited to 'src/sighook.c')
-rw-r--r-- | src/sighook.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sighook.c b/src/sighook.c index ff5b96f..ece8147 100644 --- a/src/sighook.c +++ b/src/sighook.c @@ -584,6 +584,10 @@ done: } void sigunhook(struct sighook *hook) { + if (!hook) { + return; + } + mutex_lock(&sigmutex); struct rcu *rcu = hook->sig ? &rcu_sighooks : &rcu_exithooks; |