diff options
| author | christos <christos@NetBSD.org> | 2002-03-23 15:36:15 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2002-03-23 15:36:15 +0000 |
| commit | 3c2d0dbff988dbb8e649f296b2daa0a0932f8f51 (patch) | |
| tree | 92bfa2b513a6ee8390033e1a6f58ec3459a3aa6a /sys/compat/linux | |
| parent | adc0cdfea71b0390948bd6f62623dbcdb71a85f0 (diff) | |
correct placement for FILE_UNUSE [from Izumi Tsutsui]
Diffstat (limited to 'sys/compat/linux')
| -rw-r--r-- | sys/compat/linux/common/linux_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_file.c b/sys/compat/linux/common/linux_file.c index 53aba9312c5..7eecc4ad1b3 100644 --- a/sys/compat/linux/common/linux_file.c +++ b/sys/compat/linux/common/linux_file.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_file.c,v 1.47 2002/03/22 14:53:26 christos Exp $ */ +/* $NetBSD: linux_file.c,v 1.48 2002/03/23 15:36:15 christos Exp $ */ /*- * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.47 2002/03/22 14:53:26 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_file.c,v 1.48 2002/03/23 15:36:15 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -426,6 +426,7 @@ linux_sys_fcntl(p, v, retval) switch (fp->f_type) { case DTYPE_SOCKET: cmd = cmd == LINUX_F_SETOWN ? F_SETOWN : F_GETOWN; + FILE_UNUSE(fp, p); goto doit; case DTYPE_VNODE: @@ -483,7 +484,6 @@ done: } doit: - FILE_UNUSE(fp, p); SCARG(&fca, fd) = fd; SCARG(&fca, cmd) = cmd; SCARG(&fca, arg) = arg; |
