]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:21:20 +0000 (16:21 -0800)
commit0dea68be2a345a8b4b5c911d0de92cad831fbdb2
treeb87a20eea3fccd5a830d0545c0c43fb6bd703049
parent1bda88547390761e12a5609742819cca8dbd2e77
cifs: fix stray unlock in cifs_chan_skip_or_disable

[ Upstream commit 993d1c346b1a51ac41b2193609a0d4e51e9748f4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/smb2pdu.c