cifs: fix missing spinlock around update to ses->status

[ Upstream commit 0060a4f28a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Steve French 2021-06-24 15:28:04 -05:00 • committed by Greg Kroah-Hartman
commit c35b484130
2 changed files with 6 additions and 2 deletions