diff options
author | Steve French <stfrench@microsoft.com> | 2021-02-20 19:24:11 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-02-22 21:20:43 -0600 |
commit | b438fcf12815db794403652f0ceeb216650a6a04 (patch) | |
tree | 4d9b9437e657d1c172153d3880d5c067e0b07382 /fs/cifs/connect.c | |
parent | af982da9a612295a91f367469f8945c916a20dfd (diff) | |
download | linux-b438fcf12815db794403652f0ceeb216650a6a04.tar.bz2 |
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/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index b3102a86fd81..139e306305df 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1841,9 +1841,9 @@ cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) /* new SMB session uses our server ref */ ses->server = server; if (server->dstaddr.ss_family == AF_INET6) - sprintf(ses->serverName, "%pI6", &addr6->sin6_addr); + sprintf(ses->ip_addr, "%pI6", &addr6->sin6_addr); else - sprintf(ses->serverName, "%pI4", &addr->sin_addr); + sprintf(ses->ip_addr, "%pI4", &addr->sin_addr); if (ctx->username) { ses->user_name = kstrdup(ctx->username, GFP_KERNEL); |