summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-08-23 15:39:32 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-08-23 15:39:32 +0000
commit0037f572cfa2fac5d4856ab2774b5d879e46d2c0 (patch)
treebc73652b01ced4a34b60e13f5c0fcebf6c03654d /sys/miscfs
parent557b435e5b58e8c4514957fceb7d44dc55877d99 (diff)
Cleanup change. Since almost all callers (except one) of getvnode did a FREF
on the returned file, do the FREF inside getvnode so that people can't get away with avoiding FREF and FRELE. Eyeballed by various people.
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index ebec8a22cac..c54cbe0a4e3 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdesc_vnops.c,v 1.31 2002/03/14 01:27:07 millert Exp $ */
+/* $OpenBSD: fdesc_vnops.c,v 1.32 2002/08/23 15:39:31 art Exp $ */
/* $NetBSD: fdesc_vnops.c,v 1.32 1996/04/11 11:24:29 mrg Exp $ */
/*
@@ -570,7 +570,6 @@ fdesc_setattr(v)
}
return (error);
}
- FREF(fp);
vp = (struct vnode *)fp->f_data;
if (vp->v_mount->mnt_flag & MNT_RDONLY) {
error = EROFS;