Date: Fri, 28 Jun 2013 20:07:25 +0000 (UTC) From: Davide Italiano <davide@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r252352 - head/sys/fs/smbfs Message-ID: <201306282007.r5SK7PoW078962@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: davide Date: Fri Jun 28 20:07:24 2013 New Revision: 252352 URL: http://svnweb.freebsd.org/changeset/base/252352 Log: Plug a couple of leakages in smbfs_lookup(). Modified: head/sys/fs/smbfs/smbfs_vnops.c Modified: head/sys/fs/smbfs/smbfs_vnops.c ============================================================================== --- head/sys/fs/smbfs/smbfs_vnops.c Fri Jun 28 18:32:46 2013 (r252351) +++ head/sys/fs/smbfs/smbfs_vnops.c Fri Jun 28 20:07:24 2013 (r252352) @@ -1282,11 +1282,14 @@ smbfs_lookup(ap) error = vfs_busy(mp, 0); vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY); vfs_rel(mp); - if (error) - return (ENOENT); + if (error) { + error = ENOENT; + goto out; + } if ((dvp->v_iflag & VI_DOOMED) != 0) { vfs_unbusy(mp); - return (ENOENT); + error = ENOENT; + goto out; } } VOP_UNLOCK(dvp, 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306282007.r5SK7PoW078962>