summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_shm.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-07-15 17:25:40 +0000
committerdchagin <dchagin@FreeBSD.org>2017-07-15 17:25:40 +0000
commita545f1297fedae466f8ea0c6a236e91435db757a (patch)
tree9888594856661417a2002dcaf4da83f9f6d90899 /sys/kern/uipc_shm.c
parent9c7407b4f56c32a32dd3424877d5ea1f8f3d9a0a (diff)
downloadFreeBSD-src-a545f1297fedae466f8ea0c6a236e91435db757a.zip
FreeBSD-src-a545f1297fedae466f8ea0c6a236e91435db757a.tar.gz
MFC r281436 (by mjg@):
fd: remove filedesc argument from fdclose Just accept a thread instead. This makes it consistent with fdalloc. No functional changes.
Diffstat (limited to 'sys/kern/uipc_shm.c')
-rw-r--r--sys/kern/uipc_shm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 7f43ff9..a8d9af5 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -741,7 +741,7 @@ sys_shm_open(struct thread *td, struct shm_open_args *uap)
if (uap->path == SHM_ANON) {
/* A read-only anonymous object is pointless. */
if ((uap->flags & O_ACCMODE) == O_RDONLY) {
- fdclose(fdp, fp, fd, td);
+ fdclose(td, fp, fd);
fdrop(fp, td);
return (EINVAL);
}
@@ -757,7 +757,7 @@ sys_shm_open(struct thread *td, struct shm_open_args *uap)
if (error == 0 && path[0] != '/')
error = EINVAL;
if (error) {
- fdclose(fdp, fp, fd, td);
+ fdclose(td, fp, fd);
fdrop(fp, td);
free(path, M_SHMFD);
return (error);
@@ -823,7 +823,7 @@ sys_shm_open(struct thread *td, struct shm_open_args *uap)
sx_xunlock(&shm_dict_lock);
if (error) {
- fdclose(fdp, fp, fd, td);
+ fdclose(td, fp, fd);
fdrop(fp, td);
return (error);
}
OpenPOWER on IntegriCloud