summaryrefslogtreecommitdiffstats
path: root/sys/compat/netbsd/netbsd_stat.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-02-13 19:08:06 +0000
committerart <art@openbsd.org>2002-02-13 19:08:06 +0000
commit2cc38fedad07e26699fd31f343d5325058c8d847 (patch)
tree8cb82fa06cc657271a26abb480ea883cb7de524d /sys/compat/netbsd/netbsd_stat.c
parentThe syscall numer is quad to __syscall(2). (diff)
downloadwireguard-openbsd-2cc38fedad07e26699fd31f343d5325058c8d847.tar.xz
wireguard-openbsd-2cc38fedad07e26699fd31f343d5325058c8d847.zip
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/netbsd/netbsd_stat.c')
-rw-r--r--sys/compat/netbsd/netbsd_stat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/netbsd/netbsd_stat.c b/sys/compat/netbsd/netbsd_stat.c
index dbd8c41ab1c..7921a2710f9 100644
--- a/sys/compat/netbsd/netbsd_stat.c
+++ b/sys/compat/netbsd/netbsd_stat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netbsd_stat.c,v 1.12 2001/10/26 12:03:27 art Exp $ */
+/* $OpenBSD: netbsd_stat.c,v 1.13 2002/02/13 19:08:06 art Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -195,7 +195,9 @@ netbsd_sys___fstat13(p, v, retval)
if ((fp = fd_getfile(fdp, fd)) == NULL)
return (EBADF);
+ FREF(fp);
error = (*fp->f_ops->fo_stat)(fp, &sb, p);
+ FRELE(fp);
if (error)
return (error);
openbsd_to_netbsd_stat(&sb, &nsb);