From patchwork Mon Jul 19 14:53:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 480016 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4281236jao; Mon, 19 Jul 2021 09:23:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGMSA8z3BEMRRnF4TUz1SK8O+DAiZb5NmeD93VN5vjIxYnB1fOqg5R4H40Rmusrf/yB4+N X-Received: by 2002:a17:906:e0e:: with SMTP id l14mr28104117eji.501.1626711799757; Mon, 19 Jul 2021 09:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626711799; cv=none; d=google.com; s=arc-20160816; b=UN6lQ83U/cWvRH7Htf25J4e0Q4KODpG8O6RPIj/nsG7QDZ5wGzl1/aJO+wIpldtKDj QxvRzCMDUJBi/JEbPnwhcBFrB2TqYP/3ukGGtspIMmB1wvJmRmgHYbQOvUfj0GXviBmD 3IF+JplJIZ2FGbNkvgd5UnLiYP+nAYprlGXYm5yp6ZQZEaYKFUW47zbzGX9WYzuyWTQ9 Yff3lTNKReHu5ALjak2BHvZbY8KblbFzwd3x3l5e6A7NezEWi8mkjvz4l6giuuMVewsE h/qH3cWd2teuVOMrbHhszAi899xhmCXs2ADcSAlePzmfHw2s93D2XG/aagjaJKJusmxa 0+zQ== 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=0VX+Lray7DBd2bqJ+rwDji5O43EswY7PgcOFSatkLDM=; b=FGf/edu10PXh/Fe00HR4nrkWTUGv+XPZwLWz3r1bVzALog57172LN8SwWHPs1IRItG P2qKbwYvAfp/oW4ZSKPQFkCHyptCxF/zMj97SsBfjmXmFZW/57/hJx3Ck1za+3oLbqVv 6zFzRBGVl+rXpfkSTii9Ixemj6oPkxXhcgk2XDRVD0wcVqT18rCXikG+9JufGRzHEkmE NGpFDUCapW6CdlVH6VzTFaLiAOwE7xNB3qvAi0i3W4I0bTyQN2UO10jlGx8zm/xwpoNq K2mAUQKH+xVDC1FKjySqkRKEInDQK4Yx7II8Ea1e7t3IUzidjZ/8L+T5P/5CS6ie5mpR FUfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=spRAbhF7; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 la14si22045543ejc.142.2021.07.19.09.23.19; Mon, 19 Jul 2021 09:23:19 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=spRAbhF7; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S1344298AbhGSPlM (ORCPT + 12 others); Mon, 19 Jul 2021 11:41:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:59806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347973AbhGSPfV (ORCPT ); Mon, 19 Jul 2021 11:35:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5FA1D61494; Mon, 19 Jul 2021 16:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626711190; bh=uG/bOACiXnipF7frzN43OzvSqgdcFLXtJExWq0kHYQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=spRAbhF7ZVs6Efgg08wP5KEiSVCMO6JlaBLyP3ezcUxH52dmmf2FmrTl5NJ1QnNPT EN0YMmw/Q2Gtdrduh6MbgiE/pGtgjzSQHJZyoMqbv/mt50NyWGdGhChHhcybyOsRI3 h4Fq807INn3f9LkmoWdxquJJRmmYXFP42kHSavro= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhen Lei , Takashi Iwai , Sasha Levin Subject: [PATCH 5.13 261/351] ALSA: isa: Fix error return code in snd_cmi8330_probe() Date: Mon, 19 Jul 2021 16:53:27 +0200 Message-Id: <20210719144953.582776699@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144944.537151528@linuxfoundation.org> References: <20210719144944.537151528@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Zhen Lei [ Upstream commit 31028cbed26a8afa25533a10425ffa2ab794c76c ] When 'SB_HW_16' check fails, the error code -ENODEV instead of 0 should be returned, which is the same as that returned when 'WSS_HW_CMI8330' check fails. Fixes: 43bcd973d6d0 ("[ALSA] Add snd_card_set_generic_dev() call to ISA drivers") Reported-by: Hulk Robot Signed-off-by: Zhen Lei Link: https://lore.kernel.org/r/20210707074051.2663-1-thunder.leizhen@huawei.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/isa/cmi8330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.30.2 diff --git a/sound/isa/cmi8330.c b/sound/isa/cmi8330.c index bc112df10fc5..d1ac9fc99491 100644 --- a/sound/isa/cmi8330.c +++ b/sound/isa/cmi8330.c @@ -547,7 +547,7 @@ static int snd_cmi8330_probe(struct snd_card *card, int dev) } if (acard->sb->hardware != SB_HW_16) { snd_printk(KERN_ERR PFX "SB16 not found during probe\n"); - return err; + return -ENODEV; } snd_wss_out(acard->wss, CS4231_MISC_INFO, 0x40); /* switch on MODE2 */