[patch] CIFS: double unlock in cifs_lock_add_if()
Dan Carpenter
dan.carpenter at oracle.com
Sat Oct 29 01:18:54 MDT 2011
We unlocked "cinode->lock_mutex" twice so I've removed the first
unlock.
Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index ea096ce..b8dbab8 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -775,11 +775,9 @@ try_again:
(lock->blist.next == &lock->blist));
if (!rc)
goto try_again;
- else {
- mutex_lock(&cinode->lock_mutex);
- list_del_init(&lock->blist);
- mutex_unlock(&cinode->lock_mutex);
- }
+
+ mutex_lock(&cinode->lock_mutex);
+ list_del_init(&lock->blist);
}
kfree(lock);
More information about the samba-technical
mailing list