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 <[email protected]> Reviewed-by: Paulo Alcantara (SUSE) <[email protected]> Cc: [email protected] Signed-off-by: Steve French <[email protected]>
1 parent 072a28c commit 896cd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)