Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7c2df9b authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds
Browse files

AFS: Fix lock imbalance



Don't unlock on vfs_rejected_lock path in afs_do_setlk, since the lock
is unlocked after abort_attempt label.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5a4f13fa
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -432,7 +432,6 @@ static int afs_do_setlk(struct file *file, struct file_lock *fl)
	list_del_init(&fl->fl_u.afs.link);
	if (list_empty(&vnode->granted_locks))
		afs_defer_unlock(vnode, key);
	spin_unlock(&vnode->lock);
	goto abort_attempt;
}