Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp913361pxb; Wed, 6 Apr 2022 04:06:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKtE+/oOqSns/O0fEC6JMgE2Bq94PI0dFHu7iS+m63+NOoHDn/Now9Gc5qW4EYbu4Nakgg X-Received: by 2002:a17:902:db0d:b0:14f:b047:8d22 with SMTP id m13-20020a170902db0d00b0014fb0478d22mr8018247plx.90.1649243199273; Wed, 06 Apr 2022 04:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649243199; cv=none; d=google.com; s=arc-20160816; b=ralDB1pEgqw5HNRXOv2265sOVk6ppfFxcnUNesk2yIaitIFBvUIDfJoeD8ZHE7LoKE FUKXcwD1l/tIdV1FLuwJBKXO8ZWwBQBmeVHSJoakG1vmGggRjzkN14aCzJw8WXlql+mb oMVVeUTt6DSOHsjg5RXWWjvUB5YOIC5ObZrDh1nq7ZwUnW4FdpcQDO/LUudGoHsdvM79 90jBzaUQoclGQqbyTt7FlMh5/S4WFfdK4cS0TY9npBo6KhQ8D4IcRkyR9NVlWJZ0jvCp HxQavLcw0Fx44hompeY8oOZtDhxikUqqKYp1seHgIAmAT/0/oXCngZoy7Gz4l/b39VvT 82kQ== 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=SI3Tsk2+d+/J8wvreGg65I6RFs8rdqnNnoBhJ1HVG0E=; b=Hu4vmjidt8ln8XXgUw0sLepoi3iKDe4fjjsprmfHtZwTucCivqcJQwYQ/v3g8MeKpH EDhdpefw3SB745jOTCWwQi26rStJRgJbHPE4n8QAPSfSmSaVOBKctAiyhe3xiT08bHiX OGXJadwYjgxx3oP61OuGOffLW7sUMXNEOuOsPn6XZx4Rq++2ksIMzlJ2254cqixuLyRl pjZ6ZOK5vlXTyzeyDnqMmWHkYwvfY+huyaVp7udCWeFvQ8AYy0YCTBZkowrbvnKkBDoo FnHnFlh3fMfUk0zfnHZYCp+u4M7Bow7bUJijgic9tutB5RvxA7ygojTVPsUln4HKVNsR DfXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w4n07Nsv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id u37-20020a631425000000b00399577e8d7dsi5259723pgl.227.2022.04.06.04.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:06:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w4n07Nsv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 936A75C3B39; Wed, 6 Apr 2022 02:28:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446902AbiDEUJJ (ORCPT + 99 others); Tue, 5 Apr 2022 16:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348771AbiDEJse (ORCPT ); Tue, 5 Apr 2022 05:48:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98AD8674F2; Tue, 5 Apr 2022 02:35:01 -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 40EE9B81C6F; Tue, 5 Apr 2022 09:35:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9728DC385A0; Tue, 5 Apr 2022 09:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151299; bh=PPbXr9kljGAvpwHqDB2lrMXlEEHiBz1Jy9KI/I+rXjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w4n07NsvQg+ffmRoGyHH8RmEFLMmxSf8K8v2q6aF4qqfjU5nz8VKrle3tDTYCR4N2 O0sZ9vh1OcslKiETJBufd71po+SxmkvVjblzZN8mdhx5y+uNt92bsE10nJBR+IRQLB ErSHN55yVbVtdT3gvGSLlHuGoJ0jz9ArVfv/i09M= 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.15 364/913] ASoC: imx-es8328: Fix error return code in imx_es8328_probe() Date: Tue, 5 Apr 2022 09:23:46 +0200 Message-Id: <20220405070350.756546997@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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 1981dcd7e930..a7fb53e0f96f 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