cifs: fix stray unlock in cifs_chan_skip_or_disable
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 23 Jan 2024 05:07:57 +0000 (05:07 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Jan 2024 02:23:29 +0000 (20:23 -0600)
commit993d1c346b1a51ac41b2193609a0d4e51e9748f4
tree5ab638098cc2c96eae712a25416a4b8b1d905923
parent4cdad80261862c8cdcbb5fd232aa713d0bdefe24
cifs: fix stray unlock in cifs_chan_skip_or_disable

A recent change moved the code that decides to skip
a channel or disable multichannel entirely, into a
helper function.

During this, a mutex_unlock of the session_mutex
should have been removed. Doing that here.

Fixes: f591062bdbf4 ("cifs: handle servers that still advertise multichannel after disabling")
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2pdu.c