msdosfs: fix double unlock if the source file disappears

We would unlock fvp here, only to unlock it again below,
just before "bad".

Reviewed By:	kib
Tested by:	pho
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D27339
This commit is contained in:
Edward Tomasz Napierala 2021-01-31 21:07:02 +00:00
parent 10328f8b11
commit cb69621249

View file

@ -1139,7 +1139,6 @@ msdosfs_rename(struct vop_rename_args *ap)
if (xp != ip) {
if (doingdirectory)
panic("rename: lost dir entry");
VOP_UNLOCK(fvp);
if (newparent)
VOP_UNLOCK(fdvp);
vrele(ap->a_fvp);