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:
parent
111b13184f
commit
a9d9537110
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user