Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp91797pxb; Mon, 13 Sep 2021 13:51:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymN3RgWr3afGpcwvHTcyrZihf7djMv8yYA2H+l8iL7lB4WoN2/CIqpaDhCtHMwAV/C/6u2 X-Received: by 2002:a17:906:c0cd:: with SMTP id bn13mr14712359ejb.251.1631566266354; Mon, 13 Sep 2021 13:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631566266; cv=none; d=google.com; s=arc-20160816; b=kqRfahIFTWiQXkAWGCV3MPzHC8RRPuodXV/GX3VHBZBaMTPzLvCoe73HsE/1wUbFR8 b9JlYCXMlw6rmHQr5lrdwFNIH2nqJNmWLegS3D+KmYYA6ug7DyiDwb912zrGEVmloxGs 5Hq7um4+aoUlMxzGZ8ZixEI3aM8H0R3gfUCLd4LS4kPcB+/hTiB4WCPJnUHehhfT6ZPx fp1fFzo4mJSq1AiVgolDU3FzR3SW+r+ACepl2FKjP8rpGFOiM2MfDRxuXNIrzj3RsBcW Lr3gX1jL78gQLJGoaNsfepDjMjFT4pLir86MDcyJi1M3Wmxc3fqLFHiV8sdLmUQAOnCo pXMw== 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=Q1wFPj3u4Ivnke04yPUl+F2LMwW1E47wfmUJX0nd7DM=; b=izxEzZMU+1DY0WIAzrHkyz0Uy2+vfcmKYTVTKk5gf9ce6/O4AaPqLrzQ5hPw5Cxqcr MrEA7SLurdsKM00eVvOLLFEmisStAEuAlzLuYwi6VKmXeGDeYB2L9gMw3c6MrjRflEHQ Mb/aLhTvUjyg9ptpJz35CdXI0KQF6+e7ZbORXsMrQfH7t3BAfQDhBoiYinojqW1AoE7j K6+pRtzXX3Lf1hToisOH+PftRgqoW/JobNLdhY3PgHCuQGtxpFFhPegeNIEq/U26Qata EXkeyA1HlTZW5Z4ENT+3u6zHMYGyzfTW4/mfWUqcx4Chwnqs9236IK60u2dpWoUHM9OR 39OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IEQ7g8wK; 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 jz16si3058775ejc.774.2021.09.13.13.50.29; Mon, 13 Sep 2021 13:51:06 -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=IEQ7g8wK; 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 S243332AbhIMNsF (ORCPT + 99 others); Mon, 13 Sep 2021 09:48:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:41960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242487AbhIMNnQ (ORCPT ); Mon, 13 Sep 2021 09:43:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 912D4610E6; Mon, 13 Sep 2021 13:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539840; bh=2N8VWcGLMbIZfAmXWxQhsD+Zzu+OnwNJ+T3nPRXW15g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IEQ7g8wKOQwoR3xrS2r/gpnCL9DiU+JuuiejOZspP1pvrxFvQ1SrLNolgkMRijams tIMVq+zquGI+xtVnU82SHob2VGqOJT4OzxwQ3PiCHk/3G7Hmqfl6Qu6Rqo49uwdVR5 UDHesbtim4aPrZIlH2mDJUNESkieFTljBHH1paWU= 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.10 182/236] rsi: fix an error code in rsi_probe() Date: Mon, 13 Sep 2021 15:14:47 +0200 Message-Id: <20210913131106.567718433@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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 00b558984798..3b13de59605e 100644 --- a/drivers/net/wireless/rsi/rsi_91x_usb.c +++ b/drivers/net/wireless/rsi/rsi_91x_usb.c @@ -814,6 +814,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