Commit 23bd3bb4 authored by Chris Wright's avatar Chris Wright Committed by Linus Torvalds

[PATCH] 2.5.10 BKL not always released in sem_exit()

The patch below fixes sem_exit() so that the BKL is always released.
parent 160ba3c9
......@@ -1176,8 +1176,10 @@ void sem_exit (void)
}
undo_list = current->sysvsem.undo_list;
if ((undo_list == NULL) || (atomic_read(&undo_list->refcnt) != 1))
if ((undo_list == NULL) || (atomic_read(&undo_list->refcnt) != 1)) {
unlock_kernel();
return;
}
/* There's no need to hold the semundo list lock, as current
* is the last task exiting for this undo list.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment