summaryrefslogtreecommitdiff
path: root/sys/compat/osf1
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-13 19:08:07 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-13 19:08:07 +0000
commita7e74053f365de72e8d1cd756cdf7601ba3d7428 (patch)
tree0d7df29afc1ffa666602d9492da703370c2b2aad /sys/compat/osf1
parent380c15dc359d713114d5dce6b4a285852f414061 (diff)
More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl functions in sys/compat are left.
Diffstat (limited to 'sys/compat/osf1')
-rw-r--r--sys/compat/osf1/osf1_descrip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/osf1/osf1_descrip.c b/sys/compat/osf1/osf1_descrip.c
index ea2b3ae3839..4dfabbd2e8b 100644
--- a/sys/compat/osf1/osf1_descrip.c
+++ b/sys/compat/osf1/osf1_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osf1_descrip.c,v 1.7 2001/10/26 12:03:27 art Exp $ */
+/* $OpenBSD: osf1_descrip.c,v 1.8 2002/02/13 19:08:06 art Exp $ */
/* $NetBSD: osf1_descrip.c,v 1.5 1999/06/26 01:24:41 cgd Exp $ */
/*
@@ -246,7 +246,9 @@ osf1_sys_fstat(p, v, retval)
if ((fp = fd_getfile(fdp, SCARG(uap, fd))) == NULL)
return (EBADF);
+ FREF(fp);
error = (*fp->f_ops->fo_stat)(fp, &ub, p);
+ FRELE(fp);
osf1_cvt_stat_from_native(&ub, &oub);
if (error == 0)
error = copyout((caddr_t)&oub, (caddr_t)SCARG(uap, sb),