cifs: protect srv_count with cifs_tcp_ses_lock
authorSteve French <stfrench@microsoft.com>
Tue, 16 Nov 2021 00:02:27 +0000 (18:02 -0600)
committerSteve French <stfrench@microsoft.com>
Tue, 16 Nov 2021 16:46:22 +0000 (10:46 -0600)
commit446e21482e8c10b96d540862c5f6a37009436f00
tree0b2c46436f2ec9cc018b9725cd8d2410d4b5b330
parent0226487ad8146433be74d20955448e12d85fd251
cifs: protect srv_count with cifs_tcp_ses_lock

Updates to the srv_count field are protected elsewhere
with the cifs_tcp_ses_lock spinlock.  Add one missing place
(cifs_get_tcp_sesion).

CC: Shyam Prasad N <sprasad@microsoft.com>
Addresses-Coverity: 1494149 ("Data Race Condition")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c