Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp917585pxb; Wed, 6 Apr 2022 04:13:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcgeF6vM7gDoNiA/zFD/FbVCYbUidwcAwgwVbx1VaAIg1NyTt799Xb6dYURT8X4T9+xmL9 X-Received: by 2002:a05:6a00:1312:b0:4e1:58c4:ddfd with SMTP id j18-20020a056a00131200b004e158c4ddfdmr8254985pfu.65.1649243639292; Wed, 06 Apr 2022 04:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649243639; cv=none; d=google.com; s=arc-20160816; b=XTrodS2qlzrUOPz4h/1Ij9YPC20k2qbNJEWfrII0RURxEErFuPHOSn+K5uCKhMNLoq fzE+h7zmmJdTP3F96CUx/3WVjWPY/9h3MucWXhR4zxaTM0/zA+2eHfUy9em/3raNnV0T 9DKwHOm4QuIHsY3DeFcEmFY6bbDmyl78bdRmIFWiS4eaPQSX0uHHBIaTR08LaICnw1cH 3t+5DjiHoGLVPMeVfafjVlikQKqLi60hzFiW49gWyyTDSAR1rSC3OcFfuwTAiU4raVJj mN2FWLMEBI0HGvvMDzbJ4fRNnEl+TMUQDWV6aN3rzGNuy+CObNjj1FycAF/NZQe6Iflx 57GA== 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=mcmTUL4+hbdw9PTsrTJZz0LRX8igRixexi0vw8XHxj4=; b=GRYT0dJuU0mIqCFraDpPkffXDOpGN7h3FBYWQQWPxIbnxgXNxXNn+9PAzDH0CPljvf 3x9xiaEGRB34/8Ulr1rLI/1XwbLbyvS6wPw9bPVJrKgtJUfJTcDEg4u6tuC2WNx+hnTZ xbZyRKBJ2E7ik5P2AcA/akHmy5dCesz7BGd8DScOv6A+C0ILKxpcNoOX3bkaChzmrHBe oQAxyFU7MjWhdDP/Z8VD1y6Z8VnsypadoGZ7H+oGEhw7ULCb96dkhwLtB4PJhlt11tZy aO6E/yPN4mMqaDiUNNnWvmbB6kXTJ0n18atgIVIB4nStIYlW0GmF28+jwVUgJttRP7WJ NDHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zRkJjstN; 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 t4-20020a63eb04000000b003816043efb5si15494268pgh.426.2022.04.06.04.13.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:13:59 -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=zRkJjstN; 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 592365D6696; Wed, 6 Apr 2022 02:38:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232195AbiDEU6k (ORCPT + 99 others); Tue, 5 Apr 2022 16:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348752AbiDEJsb (ORCPT ); Tue, 5 Apr 2022 05:48:31 -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 B303E4833A; Tue, 5 Apr 2022 02:34:50 -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 639FEB81C82; Tue, 5 Apr 2022 09:34:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC275C385A2; Tue, 5 Apr 2022 09:34:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151288; bh=3WCk8sBpIkZCS0IofelWfKv101rypvwobF2dXzA2GKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zRkJjstNbmpfo5bDWwOhNP9GZ72Lv5XoNmCOtPf14SAV+YVkdN278q7pOhNAT9OX4 ND1m2u2TtXf80MRcv5zEo172YEAnYGFBxS92sZPEJt6cTLRHClb/TNyB1SMU49QDY6 8tYAAUxR9d4mIK1P03i4fhhg6mdI09kqhtJmniNo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Chris Morgan , Mark Brown , Sasha Levin Subject: [PATCH 5.15 360/913] ASoC: rk817: Fix missing clk_disable_unprepare() in rk817_platform_probe Date: Tue, 5 Apr 2022 09:23:42 +0200 Message-Id: <20220405070350.637046054@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: Miaoqian Lin [ Upstream commit a6b44a2518a08348bd0f0401e4d2b99233bbabc2 ] Fix the missing clk_disable_unprepare() before return from rk817_platform_probe() in the error handling case. Fixes: 0d6a04da9b25 ("ASoC: Add Rockchip rk817 audio CODEC support") Signed-off-by: Miaoqian Lin Tested-by: Chris Morgan Link: https://lore.kernel.org/r/20220307090146.4104-1-linmq006@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rk817_codec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rk817_codec.c b/sound/soc/codecs/rk817_codec.c index 03f24edfe4f6..8fffe378618d 100644 --- a/sound/soc/codecs/rk817_codec.c +++ b/sound/soc/codecs/rk817_codec.c @@ -508,12 +508,14 @@ static int rk817_platform_probe(struct platform_device *pdev) if (ret < 0) { dev_err(&pdev->dev, "%s() register codec error %d\n", __func__, ret); - goto err_; + goto err_clk; } return 0; -err_: +err_clk: + clk_disable_unprepare(rk817_codec_data->mclk); +err_: return ret; } -- 2.34.1