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>
Thu, 30 Mar 2023 10:47:55 +0000 (12:47 +0200)
commit9a45df4ec39bd2762c27c2135c82354d47041783
tree682d4e9c02a9d8f03a5b3ac4a8f209e0c5bbe6b7
parent169a41073993add6b0cfdc44e168e75f92f4834d
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