Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1828563pxb; Mon, 13 Sep 2021 06:28:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZM6HbXzmJYZQs/M/6Cc+JY7mOZClhTDZRV2nUYtKEjbs9lEeogr8lfNPCIHgGxXvosdNW X-Received: by 2002:a17:907:76b0:: with SMTP id jw16mr12781734ejc.193.1631539693739; Mon, 13 Sep 2021 06:28:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631539693; cv=none; d=google.com; s=arc-20160816; b=Zzz2/KFsPmFqGylws0jil7YF3mF8LVurFlECUBuRWVrOMMnwF2GvnA0w9nJj+s80sk YZ/m9AFwrLMFmEVnCwcJIck8evJf/+btdCJXvNR2r3t9N6HE/gDpJ3EIocAwEVo2DmyD 2KLUZ/xl6/JYcp6CH8qVkS012bYrxpPGsNC6jfe12LQFpr66izGZxEH6pk73cZlUHGYP TS8BnNgrPjMo6IZ4JEsQgaDKp2aZG5+GQ1MbtLyWj2u2w1WLqwFmvgNrEHpWkXPcIk1a i8dF0QUxDJw0fPaBAwYGc1+7JY6mJ38EXVGN5vSiR2WgYxwrj+VKkYtyM3fZBS1zxqiy Zq+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cY4fduuGwndtzrfJxuCurtd6XuOqh1a+S5wRDk2GOaU=; b=oE3lwRRz3Ic0IvGMF27ML+Z1rgPbaeOlxut5zbTSFRc0+K5cVjDT8hHKgPsapTlayq 9b66s5di/g8ZvjdEES1gnkDr+u0fVSsTm8cnBj1D1Pe0/s8Mq53ArwJu+RFSnyDYQKHw 288Z/nVT9hXiS9WF5zPewV8GHLYRjJiIhdOXzXQlsDKvEcWT4p7Sn7UAy8Mfws7z6Ae4 QbKdrlW1Z3DIk0imIfd4pwSjHzyCQM7sSkf0egAy92y17wyOjJK263T8PKTnkJX1ReU+ tHyDTWvw2BPJVQeXv2yG41YBZZsEnKlfO4/BPMw0vfeDBS/+tN8wd+BprxLNEIb/Jq9B rFTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="OWy6q3/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si6992809edn.26.2021.09.13.06.27.49; Mon, 13 Sep 2021 06:28:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="OWy6q3/B"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241189AbhIMNZj (ORCPT + 99 others); Mon, 13 Sep 2021 09:25:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:34850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241031AbhIMNWf (ORCPT ); Mon, 13 Sep 2021 09:22:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A621610CC; Mon, 13 Sep 2021 13:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539264; bh=O1hXRKYs+5cQz8oiWTykWZg2YuTkDUuRks5u5UGTH6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OWy6q3/BE6acBBJ6VVeWFnN070xyZtLtV8bLrVUrornFh9J4cntEnqpb/+uSSps2X jX817Ste11TCe6NqNufd+oIH5snCyQOz+nITWE4ltf3FquIOqVMo2NbcHmRfpALIfo qJst81ltfbFRYlOvCz5x0ubvOWViv+e2GcG5Dkpc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 104/144] rsi: fix an error code in rsi_probe() Date: Mon, 13 Sep 2021 15:14:45 +0200 Message-Id: <20210913131051.421570396@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131047.974309396@linuxfoundation.org> References: <20210913131047.974309396@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit 9adcdf6758d7c4c9bdaf22d78eb9fcae260ed113 ] Return -ENODEV instead of success for unsupported devices. Fixes: 54fdb318c111 ("rsi: add new device model for 9116") Signed-off-by: Dan Carpenter Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20210816183947.GA2119@kili Signed-off-by: Sasha Levin --- drivers/net/wireless/rsi/rsi_91x_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/rsi/rsi_91x_usb.c b/drivers/net/wireless/rsi/rsi_91x_usb.c index a296f4e0d324..e8aa3d4bda88 100644 --- a/drivers/net/wireless/rsi/rsi_91x_usb.c +++ b/drivers/net/wireless/rsi/rsi_91x_usb.c @@ -806,6 +806,7 @@ static int rsi_probe(struct usb_interface *pfunction, } else { rsi_dbg(ERR_ZONE, "%s: Unsupported RSI device id 0x%x\n", __func__, id->idProduct); + status = -ENODEV; goto err1; } -- 2.30.2