mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
sysvsem: check if semu_list has anything on it before grabbing the lock
This should get a process-specific support instead. MFC after: 1 week
This commit is contained in:
parent
72cc0b3d93
commit
cb1c79008e
1 changed files with 2 additions and 0 deletions
|
|
@ -1412,6 +1412,8 @@ semexit_myhook(void *arg, struct proc *p)
|
|||
* Go through the chain of undo vectors looking for one
|
||||
* associated with this process.
|
||||
*/
|
||||
if (LIST_EMPTY(&semu_list))
|
||||
return;
|
||||
SEMUNDO_LOCK();
|
||||
LIST_FOREACH(suptr, &semu_list, un_next) {
|
||||
if (suptr->un_proc == p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue