Skip to content

Commit 98a4a07

Browse files
committed
smb: client: fix deadlock in smb2_find_smb_tcon()
jira LE-2157 Rebuild_History Non-Buildable kernel-5.14.0-503.14.1.el9_5 commit-author Enzo Matsumiya <[email protected]> commit 02c4187 Unlock cifs_tcp_ses_lock before calling cifs_put_smb_ses() to avoid such deadlock. Cc: [email protected] Signed-off-by: Enzo Matsumiya <[email protected]> Reviewed-by: Shyam Prasad N <[email protected]> Reviewed-by: Paulo Alcantara (Red Hat) <[email protected]> Signed-off-by: Steve French <[email protected]> (cherry picked from commit 02c4187) Signed-off-by: Jonathan Maple <[email protected]>
1 parent c0c97d6 commit 98a4a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/smb2transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ smb2_find_smb_tcon(struct TCP_Server_Info *server, __u64 ses_id, __u32 tid)
214214
}
215215
tcon = smb2_find_smb_sess_tcon_unlocked(ses, tid);
216216
if (!tcon) {
217-
cifs_put_smb_ses(ses);
218217
spin_unlock(&cifs_tcp_ses_lock);
218+
cifs_put_smb_ses(ses);
219219
return NULL;
220220
}
221221
spin_unlock(&cifs_tcp_ses_lock);

0 commit comments

Comments
 (0)