aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 82518d6a96a3..dbef95b15941 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -624,7 +624,7 @@ static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in,
624static int semctl_nolock(struct ipc_namespace *ns, int semid, 624static int semctl_nolock(struct ipc_namespace *ns, int semid,
625 int cmd, int version, union semun arg) 625 int cmd, int version, union semun arg)
626{ 626{
627 int err = -EINVAL; 627 int err;
628 struct sem_array *sma; 628 struct sem_array *sma;
629 629
630 switch(cmd) { 630 switch(cmd) {
@@ -701,7 +701,6 @@ static int semctl_nolock(struct ipc_namespace *ns, int semid,
701 default: 701 default:
702 return -EINVAL; 702 return -EINVAL;
703 } 703 }
704 return err;
705out_unlock: 704out_unlock:
706 sem_unlock(sma); 705 sem_unlock(sma);
707 return err; 706 return err;