Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp749349pxb; Tue, 5 Apr 2022 21:38:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtv8DziATeWTq7u2dJnwTDZIa05QhJg9SzYwExPKTzep7rZB3/41mTZq9m6YXhWf0mrHZr X-Received: by 2002:a65:6093:0:b0:373:9c75:19ec with SMTP id t19-20020a656093000000b003739c7519ecmr5773331pgu.539.1649219936809; Tue, 05 Apr 2022 21:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649219936; cv=none; d=google.com; s=arc-20160816; b=fpEup62erHxZciqVmBBW5fyzC7zSL/Kx6NZ46Oy9qsbEJq7xjFoZdzOjt+g7mfc66Y RIPnvCNR3uRmuLridHIuwlmWGLcl3Ux2YQn40Gt6YxomY/ort+4R+puZeEKDwArfPe5H s8/CitkrU8KhoUQVHvn2g6YkjWfdttEM+dBND/5XUbpej8VMmkXPWjKCG7QlkHNmq9+E MgwRoYS8XLZU0s6j3EC5pUgNMRNLoLq9zJGChVNLPBF88oDwh4c1FF6g5ZHvjmkpzk8G 5NKYbLE4lSrvNa64khW8L1aQvyxE2z3uTNDCPYKA5S5+2vtkipn6w8bMyVBuafOrvO6U I7jw== 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=n8NrWLbhKl0LV4ALJteMQWhS/0T1s8iOCqf/Nul+IuE=; b=iX6v/Ezwtvv3wqdC9Ubk4n8oo4qdioNkLfoitq2xz6xDfH79nl0uqu2T2DcyaeK2ZM pEYYVIUEV3lrP1ElGXYRxpYWENV51u1FhFrZYWFJ8x1NyeQOp8zhX7jtk2r9pGpkBSjz niIv7Ysd1h7k9h+u0nwwEt/6YPkd7B/A1wt06A8Pv+EBPbKovWaLU4gvay/zOD5d8yKe aZvOriYxMn9wWepi4LlZSzIrGduwTX/6DUR/T0r6WEi3HJI88++wQiJXaixjSWooNh04 kuEygBXJ4eDwU8Sfo20HlirdFnRSQeH+LWxb+06fABVOyJ7YmxtY6ZVyShr8xpumB2sz gJ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BjIIZKgc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y23-20020a17090abd1700b001c654567133si3333923pjr.186.2022.04.05.21.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 21:38:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BjIIZKgc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 197AA4EDE1; Tue, 5 Apr 2022 20:03:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238378AbiDEITD (ORCPT + 99 others); Tue, 5 Apr 2022 04:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235674AbiDEIAA (ORCPT ); Tue, 5 Apr 2022 04:00:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2346BCF4; Tue, 5 Apr 2022 00:57:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C0AB4B81B14; Tue, 5 Apr 2022 07:57:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F7AAC340EE; Tue, 5 Apr 2022 07:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145449; bh=UCmlG4rd63t5l396pdjvaRu6Ova3zotoQonuVXPefqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BjIIZKgcS9UFpEtMANGE8peZA2QazF3mWVYexlzKVJAoAgZdlAYj1ghviX3v2wnFp QKMUh8RKJUB75a6K4Or3ww/Iw4onJRWnxxIdBbI9XjfgODIdE9YoMxTXDKhmx8xjhC g7LzQaRZ9Q7M74q3kPic6QCx1AIBxdCUCtOuaxjE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wang Wensheng , Mark Brown , Sasha Levin Subject: [PATCH 5.17 0409/1126] ASoC: imx-es8328: Fix error return code in imx_es8328_probe() Date: Tue, 5 Apr 2022 09:19:16 +0200 Message-Id: <20220405070419.631036762@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Wensheng [ Upstream commit 3b891513f95cba3944e72c1139ea706d04f3781b ] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 7e7292dba215 ("ASoC: fsl: add imx-es8328 machine driver") Signed-off-by: Wang Wensheng Link: https://lore.kernel.org/r/20220310091902.129299-1-wangwensheng4@huawei.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/imx-es8328.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/imx-es8328.c b/sound/soc/fsl/imx-es8328.c index 09c674ee79f1..168973035e35 100644 --- a/sound/soc/fsl/imx-es8328.c +++ b/sound/soc/fsl/imx-es8328.c @@ -87,6 +87,7 @@ static int imx_es8328_probe(struct platform_device *pdev) if (int_port > MUX_PORT_MAX || int_port == 0) { dev_err(dev, "mux-int-port: hardware only has %d mux ports\n", MUX_PORT_MAX); + ret = -EINVAL; goto fail; } -- 2.34.1