diff options
author | Linus Torvalds <[email protected]> | 2013-05-04 10:25:11 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-05-04 17:19:59 -0700 |
commit | fbfd1d2862a8316c7191bc551c6a842e6918abb0 (patch) | |
tree | 06c5a391238bcf93bb3d7f2c587d069eeb6809e5 /lib/mpi/mpi-bit.c | |
parent | 4091fd942e96af5a0b1dfa6aac5f44153ebf7cdb (diff) |
ipc: fix double sem unlock in semctl error path
Fix another ipc locking buglet introduced by the scalability patches:
when semctl_down() was changed to delay the semaphore locking, one error
path for security_sem_semctl() went through the semaphore unlock logic
even though the semaphore had never been locked.
Introduced by commit 16df3674efe3 ("ipc,sem: do not hold ipc lock more
than necessary")
Acked-by: Davidlohr Bueso <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions