Skip to content

Commit 896cd31

Browse files
sprasad-microsoftsmfrench
authored andcommitted
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>
1 parent 072a28c commit 896cd31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/smb2ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_
717717
if (rc == -EOPNOTSUPP) {
718718
cifs_dbg(FYI,
719719
"server does not support query network interfaces\n");
720-
goto out;
720+
ret_data_len = 0;
721721
} else if (rc != 0) {
722722
cifs_tcon_dbg(VFS, "error %d on ioctl to get interface list\n", rc);
723723
goto out;

0 commit comments

Comments
 (0)