]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: interface count displayed incorrectly
authorSteve French <stfrench@microsoft.com>
Sat, 15 Oct 2022 22:02:30 +0000 (17:02 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Oct 2022 15:06:23 +0000 (10:06 -0500)
commit2cb68376cca7383a6498071fcfabff708c713e25
tree47bc48af4029615cf5093d7730416eed2558622c
parent3ba99d4c03e18693cc3f57af3b503c64bddc720f
smb3: interface count displayed incorrectly

The "Server interfaces" count in /proc/fs/cifs/DebugData increases
as the interfaces are requeried, rather than being reset to the new
value.  This could cause a problem if the server disabled
multichannel as the iface_count is checked in try_adding_channels
to see if multichannel still supported.

Also fixes a coverity warning:

Addresses-Coverity: 1526374 ("Concurrent data access violations  (MISSING_LOCK)")
Cc: <stable@vger.kernel.org>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c