aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_sem.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2015-04-11 15:40:28 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2015-04-11 15:40:28 +0000
commit90f54cbfeb973c0e2ee7b617b7759ac4335a9efe (patch)
tree459507ed60c5523e27a2afd507ee8abc206839ac /sys/kern/uipc_sem.c
parent3d08016fc401d4376244e79d7da9168102154d17 (diff)
downloadsrc-90f54cbfeb973c0e2ee7b617b7759ac4335a9efe.tar.gz
src-90f54cbfeb973c0e2ee7b617b7759ac4335a9efe.zip
Notes
Diffstat (limited to 'sys/kern/uipc_sem.c')
-rw-r--r--sys/kern/uipc_sem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c
index 935a245632e6..dbfa28a7f4c3 100644
--- a/sys/kern/uipc_sem.c
+++ b/sys/kern/uipc_sem.c
@@ -471,7 +471,7 @@ ksem_create(struct thread *td, const char *name, semid_t *semidp, mode_t mode,
*/
error = ksem_create_copyout_semid(td, semidp, fd, compat32);
if (error) {
- fdclose(fdp, fp, fd, td);
+ fdclose(td, fp, fd);
fdrop(fp, td);
return (error);
}
@@ -491,7 +491,7 @@ ksem_create(struct thread *td, const char *name, semid_t *semidp, mode_t mode,
if (error == 0 && path[0] != '/')
error = EINVAL;
if (error) {
- fdclose(fdp, fp, fd, td);
+ fdclose(td, fp, fd);
fdrop(fp, td);
free(path, M_KSEM);
return (error);
@@ -542,7 +542,7 @@ ksem_create(struct thread *td, const char *name, semid_t *semidp, mode_t mode,
if (error) {
KASSERT(ks == NULL, ("ksem_create error with a ksem"));
- fdclose(fdp, fp, fd, td);
+ fdclose(td, fp, fd);
fdrop(fp, td);
return (error);
}