smb3: missing lock when picking channel
authorSteve French <stfrench@microsoft.com>
Thu, 25 Apr 2024 16:30:16 +0000 (11:30 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 25 Apr 2024 17:47:23 +0000 (12:47 -0500)
commit8094a600245e9b28eb36a13036f202ad67c1f887
tree3c6267f9399cfb2287a83720f3025c2992473499
parent9a1f1d04f63c59550a5364858b46eeffdf03e8d6
smb3: missing lock when picking channel

Coverity spotted a place where we should have been holding the
channel lock when accessing the ses channel index.

Addresses-Coverity: 1582039 ("Data race condition (MISSING_LOCK)")
Cc: stable@vger.kernel.org
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/transport.c