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
This commit is contained in:
Konstantin Belousov 2009-03-11 19:45:52 +00:00
parent 111b13184f
commit a9d9537110

View File

@ -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);
}