diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2023-11-06 17:22:11 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-11-09 17:25:21 +0100 |
commit | 9599d59eb8fc0c0fd9480c4f22901533d08965ee (patch) | |
tree | ff5624b3259a70b001d7661db42034c698d12fca /fs/smb/client/connect.c | |
parent | cifs: account for primary channel in the interface list (diff) | |
download | linux-9599d59eb8fc0c0fd9480c4f22901533d08965ee.tar.xz linux-9599d59eb8fc0c0fd9480c4f22901533d08965ee.zip |
cifs: do not pass cifs_sb when trying to add channels
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>
Diffstat (limited to 'fs/smb/client/connect.c')
-rw-r--r-- | fs/smb/client/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c index 3ff82f0aa00e..947e3c362beb 100644 --- a/fs/smb/client/connect.c +++ b/fs/smb/client/connect.c @@ -3564,7 +3564,7 @@ int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx) ctx->prepath = NULL; out: - cifs_try_adding_channels(cifs_sb, mnt_ctx.ses); + cifs_try_adding_channels(mnt_ctx.ses); rc = mount_setup_tlink(cifs_sb, mnt_ctx.ses, mnt_ctx.tcon); if (rc) goto error; |