cifs: missing lock when updating session status
authorSteve French <stfrench@microsoft.com>
Thu, 27 Apr 2023 03:01:31 +0000 (22:01 -0500)
committerSteve French <stfrench@microsoft.com>
Sat, 29 Apr 2023 02:23:42 +0000 (21:23 -0500)
commit943fb67b090212f1d3789eb7796b1c9045c62fd6
treef4c7a6051a4238cf12fe3dc1abdf9971ecb2c9c5
parentd906be3fa571f6fc9381911304a0eca99f1b6951
cifs: missing lock when updating session status

Coverity noted a place where we were not grabbing
the ses_lock when setting (and checking) ses_status.

Addresses-Coverity: 1536833 ("Data race condition (MISSING_LOCK)")
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c