aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc/sem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 4b4139f6ad5c..5cf7b4c093b3 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -329,9 +329,7 @@ static inline void sem_lock_and_putref(struct sem_array *sma)
329 329
330static inline void sem_putref(struct sem_array *sma) 330static inline void sem_putref(struct sem_array *sma)
331{ 331{
332 sem_lock_and_putref(sma); 332 ipc_rcu_putref(sma);
333 sem_unlock(sma, -1);
334 rcu_read_unlock();
335} 333}
336 334
337static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s) 335static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s)