summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-03-11 19:45:52 +0000
committerkib <kib@FreeBSD.org>2009-03-11 19:45:52 +0000
commitde74558fd8fae07358ec61b9001d0a7590bb9d22 (patch)
treecd3499cee0e0b7179c9ea8d3e517556c43bd005e /sys/ufs/ffs
parent8f0aa78773ba614760fb3cb29eef7d540d045b4c (diff)
downloadFreeBSD-src-de74558fd8fae07358ec61b9001d0a7590bb9d22.zip
FreeBSD-src-de74558fd8fae07358ec61b9001d0a7590bb9d22.tar.gz
Do not double-free the struct inode when insmntque failed. Default
insmntque destructor reclaims the vnode, and ufs_reclaim frees the memory. Reviewed by: tegge MFC after: 3 days
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index c6de7df..73535fc 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1464,7 +1464,6 @@ ffs_vgetf(mp, ino, flags, vpp, ffs_flags)
vp->v_vflag |= VV_FORCEINSMQ;
error = insmntque(vp, mp);
if (error != 0) {
- uma_zfree(uma_inode, ip);
*vpp = NULL;
return (error);
}
OpenPOWER on IntegriCloud