]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: prevent races updating CurrentMid
authorSteve French <stfrench@microsoft.com>
Fri, 25 Jun 2021 18:54:32 +0000 (13:54 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 25 Jun 2021 19:02:26 +0000 (14:02 -0500)
commit9195ef45d1f5e8d5b0832295a544a1a26d1bf0c0
tree83689a1450ff250ade3184454d140f451b9c1d21
parentece880a71e7a5d04473ab2f86cf2f17fe605760c
smb3: prevent races updating CurrentMid

There was one place where we weren't locking CurrentMid, and although
likely to be safe since even without the lock since it is during
negotiate protocol, it is more consistent to lock it in this last remaining
place, and avoids confusing Coverity warning.

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