Skip to content

Commit 5112d80

Browse files
sprasad-microsoftSteve French
authored andcommitted
cifs: populate server_hostname for extra channels
Recently, a new field got added to the smb3_fs_context struct named server_hostname. While creating extra channels, pick up this field from primary channel. Signed-off-by: Shyam Prasad N <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b9ad6b5 commit 5112d80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/sess.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
222222
/* Auth */
223223
ctx.domainauto = ses->domainAuto;
224224
ctx.domainname = ses->domainName;
225+
ctx.server_hostname = ses->server->hostname;
225226
ctx.username = ses->user_name;
226227
ctx.password = ses->password;
227228
ctx.sectype = ses->sectype;

0 commit comments

Comments
 (0)