]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitece880a71e7a5d04473ab2f86cf2f17fe605760c
tree8f0c78103b3d3c2051927deed1e430e90f297ad2
parent1a453667896f53e5d758d69d245be081f40fd8e4
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