1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189706

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