diff options
-rw-r--r-- | ipc/sem.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -329,9 +329,7 @@ static inline void sem_lock_and_putref(struct sem_array *sma) | |||
329 | 329 | ||
330 | static inline void sem_putref(struct sem_array *sma) | 330 | static 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 | ||
337 | static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s) | 335 | static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s) |