commit | c35b484130cc4ad29833534849faac8df1ebd9fb | [log] [tgz] |
---|---|---|
author | Steve French <stfrench@microsoft.com> | Thu Jun 24 15:28:04 2021 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jul 14 16:56:01 2021 +0200 |
tree | 229db52a874a7d4116f65920adfdc00ea8b18d7a | |
parent | a72d660c0dccebfe9499ad8f0b80946b26633560 [diff] |
cifs: fix missing spinlock around update to ses->status [ Upstream commit 0060a4f28a9ef45ae8163c0805e944a2b1546762 ] 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>