diff options
author | Steve French <stfrench@microsoft.com> | 2021-06-24 15:28:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-14 16:56:01 +0200 |
commit | c35b484130cc4ad29833534849faac8df1ebd9fb (patch) | |
tree | 229db52a874a7d4116f65920adfdc00ea8b18d7a /fs/cifs/file.c | |
parent | a72d660c0dccebfe9499ad8f0b80946b26633560 (diff) | |
download | linux-stable-c35b484130cc4ad29833534849faac8df1ebd9fb.tar.gz linux-stable-c35b484130cc4ad29833534849faac8df1ebd9fb.tar.bz2 linux-stable-c35b484130cc4ad29833534849faac8df1ebd9fb.zip |
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>
Diffstat (limited to 'fs/cifs/file.c')
0 files changed, 0 insertions, 0 deletions