Only destroy pm_fatlock on error if it was initialized.
MFC after: 3 weeks
This commit is contained in:
parent
78e58b8725
commit
a84ec05f56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204576
@ -770,8 +770,8 @@ mountmsdosfs(struct vnode *devvp, struct mount *mp)
|
||||
g_topology_unlock();
|
||||
PICKUP_GIANT();
|
||||
}
|
||||
lockdestroy(&pmp->pm_fatlock);
|
||||
if (pmp) {
|
||||
lockdestroy(&pmp->pm_fatlock);
|
||||
if (pmp->pm_inusemap)
|
||||
free(pmp->pm_inusemap, M_MSDOSFSFAT);
|
||||
free(pmp, M_MSDOSFSMNT);
|
||||
|
Loading…
Reference in New Issue
Block a user