diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-08-23 22:21:45 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-08-23 22:21:45 +0000 |
commit | 9958388d0a4d2166f3f7b1acfaae96e99f8843b7 (patch) | |
tree | ab1d7cfaa82b05c8b9df1d55216c6a854b15a50c /sys/miscfs | |
parent | b384e85014c8970773b255f11530482e7110ccfb (diff) |
Just like getvnode, make getsock FREF the file so that we can't get away
with not refing it.
Eyeballed by lurene@daemonkitty.net, fries@, nordin@ and fries@
Some additional cleanups by nordin@
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/portal/portal_vfsops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c index 3fe99184349..4c43fb9489a 100644 --- a/sys/miscfs/portal/portal_vfsops.c +++ b/sys/miscfs/portal/portal_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: portal_vfsops.c,v 1.13 2002/03/14 01:27:08 millert Exp $ */ +/* $OpenBSD: portal_vfsops.c,v 1.14 2002/08/23 22:21:44 art Exp $ */ /* $NetBSD: portal_vfsops.c,v 1.14 1996/02/09 22:40:41 christos Exp $ */ /* @@ -105,10 +105,10 @@ portal_mount(mp, path, data, ndp, p) if ((error = getsock(p->p_fd, args.pa_socket, &fp)) != 0) return (error); so = (struct socket *) fp->f_data; - if (so->so_proto->pr_domain->dom_family != AF_UNIX) + if (so->so_proto->pr_domain->dom_family != AF_UNIX) { + FRELE(fp); return (ESOCKTNOSUPPORT); - - FREF(fp); + } error = getnewvnode(VT_PORTAL, mp, portal_vnodeop_p, &rvp); /* XXX */ if (error) { |