cifs: empty interface list when server doesn't support query interfaces
commit 896cd316b841053f6df95ab77b5f1322c16a8e18 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:
committed by
Greg Kroah-Hartman
parent
8beb18c25b
commit
f7a4ce3514
@@ -593,7 +593,7 @@ SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon)
|
|||||||
if (rc == -EOPNOTSUPP) {
|
if (rc == -EOPNOTSUPP) {
|
||||||
cifs_dbg(FYI,
|
cifs_dbg(FYI,
|
||||||
"server does not support query network interfaces\n");
|
"server does not support query network interfaces\n");
|
||||||
goto out;
|
ret_data_len = 0;
|
||||||
} else if (rc != 0) {
|
} else if (rc != 0) {
|
||||||
cifs_tcon_dbg(VFS, "error %d on ioctl to get interface list\n", rc);
|
cifs_tcon_dbg(VFS, "error %d on ioctl to get interface list\n", rc);
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user