From 7e6979f80fd20f6d64c568b833c242f81f203237 Mon Sep 17 00:00:00 2001 From: art Date: Fri, 23 Aug 2002 15:39:31 +0000 Subject: 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. --- sys/compat/linux/linux_misc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 31fe8cc71fd..d392fc85dda 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.44 2002/07/25 22:18:27 nordin Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.45 2002/08/23 15:39:31 art Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /* @@ -1021,7 +1021,6 @@ linux_sys_getdents(p, v, retval) args.resid = nbytes; args.outp = (caddr_t)SCARG(uap, dirent); - FREF(fp); if ((error = readdir_with_callback(fp, &fp->f_offset, nbytes, linux_readdir_callback, &args)) != 0) goto exit; -- cgit v1.2.3-59-g8ed1b