Message ID | 1499455706-9398-6-git-send-email-paulmck@linux.vnet.ibm.com |
---|---|
State | Awaiting Upstream |
Delegated to: | Pablo Neira |
Headers | show |
diff --git a/ipc/sem.c b/ipc/sem.c index 947dc2348271..e88d0749a929 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -2096,7 +2096,8 @@ void exit_sem(struct task_struct *tsk) * possibility where we exit while freeary() didn't * finish unlocking sem_undo_list. */ - spin_unlock_wait(&ulp->lock); + spin_lock(&ulp->lock); + spin_unlock(&ulp->lock); rcu_read_unlock(); break; }