From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9EAB8BE0 for ; Tue, 28 Mar 2023 15:11:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68C31C433EF; Tue, 28 Mar 2023 15:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1680016287; bh=JW4ZRhtSjUW/tfvNM4VzuU5ioEYBqDQpDt2ZuZzKPMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ur9ftImMeA2XCJfFBfPQbfXA3tuTO/t6+xMb+LmmKa8H1kW/ZohXDI06L4TGxj8VX A4e+WrlP+GpbAGA0XYk/+gWbo4ure9TrENdc3giHHr1ZoDNdQ/GJFh/rEGUKdQk7ME 6LC3uu3mSYUmsv+/oK3WU/bXsDx9KGHsyY76+PPk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shyam Prasad N , "Paulo Alcantara (SUSE)" , Steve French Subject: [PATCH 5.15 102/146] cifs: empty interface list when server doesnt support query interfaces Date: Tue, 28 Mar 2023 16:43:11 +0200 Message-Id: <20230328142606.931949939@linuxfoundation.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230328142602.660084725@linuxfoundation.org> References: <20230328142602.660084725@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Shyam Prasad N 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 Reviewed-by: Paulo Alcantara (SUSE) Cc: stable@vger.kernel.org Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/cifs/smb2ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -653,7 +653,7 @@ SMB3_request_interfaces(const unsigned i if (rc == -EOPNOTSUPP) { cifs_dbg(FYI, "server does not support query network interfaces\n"); - goto out; + ret_data_len = 0; } else if (rc != 0) { cifs_tcon_dbg(VFS, "error %d on ioctl to get interface list\n", rc); goto out;