MFC r204589:

Do not leak vnode lock when msdosfs mount is updated and specified
device is different from the device used to the original mount.
This commit is contained in:
Konstantin Belousov 2010-03-24 14:53:28 +00:00
parent a8428ad0f1
commit 3d9ee8abe2

View file

@ -383,10 +383,9 @@ msdosfs_mount(struct mount *mp)
pmp = VFSTOMSDOSFS(mp);
#endif
} else {
vput(devvp);
if (devvp != pmp->pm_devvp)
error = EINVAL; /* XXX needs translation */
else
vput(devvp);
return (EINVAL); /* XXX needs translation */
}
if (error) {
vrele(devvp);