diff options
author | kib <kib@FreeBSD.org> | 2009-03-11 19:45:52 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-03-11 19:45:52 +0000 |
commit | de74558fd8fae07358ec61b9001d0a7590bb9d22 (patch) | |
tree | cd3499cee0e0b7179c9ea8d3e517556c43bd005e /sys/ufs/ffs/ffs_vfsops.c | |
parent | 8f0aa78773ba614760fb3cb29eef7d540d045b4c (diff) | |
download | FreeBSD-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/ffs_vfsops.c')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 1 |
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); } |