summaryrefslogtreecommitdiffstats
path: root/fs/cifs/sess.c
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2021-02-21 02:24:11 +0100
committerSteve French <stfrench@microsoft.com>2021-02-23 04:20:43 +0100
commitb438fcf12815db794403652f0ceeb216650a6a04 (patch)
tree4d9b9437e657d1c172153d3880d5c067e0b07382 /fs/cifs/sess.c
parentcifs: Fix inconsistent IS_ERR and PTR_ERR (diff)
downloadlinux-b438fcf12815db794403652f0ceeb216650a6a04.tar.xz
linux-b438fcf12815db794403652f0ceeb216650a6a04.zip
cifs: change confusing field serverName (to ip_addr)
ses->serverName is not the server name, but the string form of the ip address of the server. Change the name to ip_addr to avoid confusion (and fix the array length to match maximum length of ipv6 address). Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/sess.c')
-rw-r--r--fs/cifs/sess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index 213465718fa8..183a3a868d7b 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -218,7 +218,7 @@ cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
/* UNC and paths */
/* XXX: Use ses->server->hostname? */
- sprintf(unc, unc_fmt, ses->serverName);
+ sprintf(unc, unc_fmt, ses->ip_addr);
ctx.UNC = unc;
ctx.prepath = "";