mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 05:24:47 +08:00
cifs: empty interface list when server doesn't support query interfaces
commit 896cd316b8
upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
169a410739
commit
9a45df4ec3
@ -653,7 +653,7 @@ SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user