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/file.c | |
parent | af982da9a612295a91f367469f8945c916a20dfd (diff) | |
download | linux-stable-b438fcf12815db794403652f0ceeb216650a6a04.tar.gz linux-stable-b438fcf12815db794403652f0ceeb216650a6a04.tar.bz2 linux-stable-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/file.c')
-rw-r--r-- | fs/cifs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 6d001905c8e5..26de4329d161 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -580,7 +580,7 @@ int cifs_open(struct inode *inode, struct file *file) } else if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { if (tcon->ses->serverNOS) cifs_dbg(VFS, "server %s of type %s returned unexpected error on SMB posix open, disabling posix open support. Check if server update available.\n", - tcon->ses->serverName, + tcon->ses->ip_addr, tcon->ses->serverNOS); tcon->broken_posix_open = true; } else if ((rc != -EIO) && (rc != -EREMOTE) && |