cifs: drop spinlock before calling cifs_put_tlink
[linux-2.6.git] / fs / cifs / connect.c
index 6ec366f..dbd669c 100644 (file)
@@ -2242,8 +2242,8 @@ cifs_match_super(struct super_block *sb, void *data)
 
        rc = compare_mount_options(sb, mnt_data);
 out:
-       cifs_put_tlink(tlink);
        spin_unlock(&cifs_tcp_ses_lock);
+       cifs_put_tlink(tlink);
        return rc;
 }