aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2022-05-14 11:06:40 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2022-05-14 11:06:40 +0000
commitf0b0fdf15efee38ee6989ec2b1668f065704c7df (patch)
treea8ad826224b2e94c6a6ca58473473cd815702ea6
parent448c505c33cc334193590f3844406d6a74f26e2a (diff)
downloadsrc-f0b0fdf15efee38ee6989ec2b1668f065704c7df.tar.gz
src-f0b0fdf15efee38ee6989ec2b1668f065704c7df.zip
-rw-r--r--sys/kern/sysv_sem.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c
index d489821e983b..638681fc6dcd 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -669,7 +669,7 @@ sys___semctl(struct thread *td, struct __semctl_args *uap)
break;
case SETVAL:
semun.val = arg.val;
- break;
+ break;
}
error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd, &semun,
@@ -851,7 +851,7 @@ kern_semctl(struct thread *td, int semid, int semnum, int cmd,
* won't work for SETALL since we can't copyin() more
* data than the user specified as we may return a
* spurious EFAULT.
- *
+ *
* Note that the number of semaphores in a set is
* fixed for the life of that set. The only way that
* the 'count' could change while are blocked in
@@ -864,7 +864,7 @@ kern_semctl(struct thread *td, int semid, int semnum, int cmd,
*
*/
count = semakptr->u.sem_nsems;
- mtx_unlock(sema_mtxp);
+ mtx_unlock(sema_mtxp);
array = malloc(sizeof(*array) * count, M_TEMP, M_WAITOK);
mtx_lock(sema_mtxp);
if ((error = semvalid(semid, rpr, semakptr)) != 0)
@@ -917,7 +917,7 @@ kern_semctl(struct thread *td, int semid, int semnum, int cmd,
* and why we require a userland buffer.
*/
count = semakptr->u.sem_nsems;
- mtx_unlock(sema_mtxp);
+ mtx_unlock(sema_mtxp);
array = malloc(sizeof(*array) * count, M_TEMP, M_WAITOK);
error = copyin(arg->array, array, count * sizeof(*array));
mtx_lock(sema_mtxp);
@@ -1838,7 +1838,7 @@ freebsd7___semctl(struct thread *td, struct freebsd7___semctl_args *uap)
break;
case SETVAL:
semun.val = arg.val;
- break;
+ break;
}
error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd, &semun,
@@ -1909,7 +1909,7 @@ freebsd7_freebsd32___semctl(struct thread *td,
case SETALL:
error = copyin(uap->arg, &arg, sizeof(arg));
if (error)
- return (error);
+ return (error);
break;
}
@@ -1981,7 +1981,7 @@ freebsd32___semctl(struct thread *td, struct freebsd32___semctl_args *uap)
case SETALL:
error = copyin(uap->arg, &arg, sizeof(arg));
if (error)
- return (error);
+ return (error);
break;
}
@@ -2007,7 +2007,7 @@ freebsd32___semctl(struct thread *td, struct freebsd32___semctl_args *uap)
break;
case SETVAL:
semun.val = arg.val;
- break;
+ break;
}
error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd, &semun,