]> git.ipfire.org Git - thirdparty/linux.git/commit
smb: client: protect tc_count increment in smb2_find_smb_sess_tcon_unlocked()
authorHenrique Carvalho <henrique.carvalho@suse.com>
Thu, 14 May 2026 23:18:25 +0000 (20:18 -0300)
committerSteve French <stfrench@microsoft.com>
Tue, 19 May 2026 15:35:12 +0000 (10:35 -0500)
commit4d8690dace005a38e6dbde9ecce2da3ad85c7c41
tree78954810a436c1463a8c360eec26bc50668caa6c
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
smb: client: protect tc_count increment in smb2_find_smb_sess_tcon_unlocked()

Commit 96c4af418586 ("cifs: Fix locking usage for tcon fields")
refactored cifs code to change cifs_tcp_ses_lock for tc_lock around
tc_count changes.

There was missing lock around tc_count increment inside
smb2_find_smb_sess_tcon_unlocked().

Cc: stable@vger.kernel.org
Fixes: 96c4af418586 ("cifs: Fix locking usage for tcon fields")
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2transport.c