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

Commit d12799b4 authored by Pavel Shilovsky's avatar Pavel Shilovsky Committed by Steve French
Browse files

CIFS: Remove extra mutex_unlock in cifs_lock_add_if



to prevent the mutex being unlocked twice if we interrupt a blocked lock.

Signed-off-by: default avatarPavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent f362f98e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -778,7 +778,6 @@ cifs_lock_add_if(struct cifsInodeInfo *cinode, __u64 offset, __u64 length,
		else {
			mutex_lock(&cinode->lock_mutex);
			list_del_init(&lock->blist);
			mutex_unlock(&cinode->lock_mutex);
		}
	}