cifs: fix missing spinlock around update to ses->status
authorSteve French <stfrench@microsoft.com>
Thu, 24 Jun 2021 20:28:04 +0000 (15:28 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jun 2021 21:09:10 +0000 (16:09 -0500)
commit0060a4f28a9ef45ae8163c0805e944a2b1546762
tree8f0c78103b3d3c2051927deed1e430e90f297ad2
parent162004a2f7ef5c77600e364dc4e9315b0e6ca386
cifs: fix missing spinlock around update to ses->status

In the other places where we update ses->status we protect the
updates via GlobalMid_Lock. So to be consistent add the same
locking around it in cifs_put_smb_ses where it was missing.

Addresses-Coverity: 1268904 ("Data race condition")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/connect.c