cifs: do not pass cifs_sb when trying to add channels
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 6 Nov 2023 16:22:11 +0000 (16:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:20:09 +0000 (17:20 +0000)
commit739bf98ce9deebbd12000cba81d2b48ee1d009de
tree9a882c4ac0552a17e9cc2cdb0a4759f276420594
parent328004e6df5a9a8692e4ee04b3330b6b8931dba2
cifs: do not pass cifs_sb when trying to add channels

commit 9599d59eb8fc0c0fd9480c4f22901533d08965ee upstream.

The only reason why cifs_sb gets passed today to cifs_try_adding_channels
is to pass the local_nls field for the new channels and binding session.
However, the ses struct already has local_nls field that is setup during
the first cifs_setup_session. So there is no need to pass cifs_sb.

This change removes cifs_sb from the arg list for this and the functions
that it calls and uses ses->local_nls instead.

Cc: stable@vger.kernel.org
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/sess.c