summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorjasoni <jasoni@cvs.openbsd.org>2002-02-13 20:43:43 +0000
committerjasoni <jasoni@cvs.openbsd.org>2002-02-13 20:43:43 +0000
commitbf35937b57e42882b040c93002a687dc31959a43 (patch)
treefa4abc1b9b9bb6c96cd18fe8459d91afc3cdd84b /sys/arch/i386
parent11a466004819077c21fa18f4d72ed89d83708382 (diff)
FREF/FRELE where required due to fd_getfile.
- ok art@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/linux_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/linux_machdep.c b/sys/arch/i386/i386/linux_machdep.c
index 355f88540b2..57dd6222d88 100644
--- a/sys/arch/i386/i386/linux_machdep.c
+++ b/sys/arch/i386/i386/linux_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_machdep.c,v 1.19 2002/02/06 01:55:04 jasoni Exp $ */
+/* $OpenBSD: linux_machdep.c,v 1.20 2002/02/13 20:43:42 jasoni Exp $ */
/* $NetBSD: linux_machdep.c,v 1.29 1996/05/03 19:42:11 christos Exp $ */
/*
@@ -587,10 +587,12 @@ linux_machdepioctl(p, v, retval)
* XXX hack: if the function returns EJUSTRETURN,
* it has stuffed a sysctl return value in pt.data.
*/
+ FREF(fp);
ioctlf = fp->f_ops->fo_ioctl;
pt.com = SCARG(uap, com);
pt.data = SCARG(uap, data);
error = ioctlf(fp, PTIOCLINUX, (caddr_t)&pt, p);
+ FRELE(fp);
if (error == EJUSTRETURN) {
retval[0] = (register_t)pt.data;
error = 0;