mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
a8428ad0f1
commit
3d9ee8abe2
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue