]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: empty interface list when server doesn't support query interfaces
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 9 Mar 2023 13:23:29 +0000 (13:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 09:16:40 +0000 (11:16 +0200)
commitaee9a191cfac0c2b1b4eaca13e2d09ce16fe8ca3
tree58add5814a46ed14e3d0bbfd8c8b57ef0ce1c195
parenta7d0c43b23ffb3f8033c199841ffd5b0011302e1
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>
fs/cifs/smb2ops.c