diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2023-03-09 14:23:29 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-03-23 17:19:42 +0100 |
commit | 896cd316b841053f6df95ab77b5f1322c16a8e18 (patch) | |
tree | 12e6050cc011b8718a480872899f837b28c17491 /fs | |
parent | cifs: do not poll server interfaces too regularly (diff) | |
download | linux-896cd316b841053f6df95ab77b5f1322c16a8e18.tar.xz linux-896cd316b841053f6df95ab77b5f1322c16a8e18.zip |
cifs: empty interface list when server doesn't support query interfaces
When querying server interfaces returns -EOPNOTSUPP,
clear the list of interfaces. Assumption is that multichannel
would be disabled too.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/smb2ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 96ca09d885a2..f7e18ab7ee9c 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -717,7 +717,7 @@ SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_ if (rc == -EOPNOTSUPP) { cifs_dbg(FYI, "server does not support query network interfaces\n"); - goto out; + ret_data_len = 0; } else if (rc != 0) { cifs_tcon_dbg(VFS, "error %d on ioctl to get interface list\n", rc); goto out; |