From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E88FC2628D; Sat, 30 May 2026 17:55:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780163725; cv=none; b=f2R/iuZYc5vatzmTL+05lOhMt5U1GScx2IMOV71KaD/h4ethdu22sEx9FBt4SzV75P6kTQBp5ifCAx5p9gB4KTayV3n7jpLVF7EcZnX6K34tQQSJOODfTdRv5AVsrwjGs4/KFMhdbjlprpCKLRa8wS7P/epqQYTXC0d1U/Zi1KQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780163725; c=relaxed/simple; bh=9ZoxQcGGno5kqGi1+I8jNm89HUniNhW5sN3FBbAMGWY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tgqaeYCjnT47Q8Npcc8EXSVJJUa4rdfKFjCaP+F3vAmsXk5Pr88Zm2xWt92d5gDOnAJ9eUMqMQV0fxEHlI6MN0m5InQ4IqWRnUVJ7jkf2TllXk/HNL6f8ZiWxFhxPIvDR1OyzC8oEDqnw/YjMS336ki3PpekC/e00tYxkFBxhb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B9Xv99WR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="B9Xv99WR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3307F1F00893; Sat, 30 May 2026 17:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780163724; bh=HyOaE8lwozrXaebfQ50sA9pPiDk+IlM4T7hPhYl+t6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=B9Xv99WRK9ioMxtDgQ9VyMODv45o9zpyUnO53uGtMIICsshbGTnD+30akmWPp3lfU I1N6dIghhHS62s9szYsXoZgNGH12ISMAHy7g8uIbOQgRfCwrU0TISmx/0LpIPv0AYO FDz8Ai76KjTnQkztiaa1vwVXlVkCAzxxQYLMav1s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?C=C3=A1ssio=20Gabriel?= , Cezary Rojewski , Hans de Goede , Mark Brown Subject: [PATCH 5.15 326/776] ASoC: Intel: bytcr_wm5102: Fix MCLK leak on platform_clock_control error Date: Sat, 30 May 2026 18:00:40 +0200 Message-ID: <20260530160248.996333203@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160240.228940103@linuxfoundation.org> References: <20260530160240.228940103@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Cássio Gabriel commit 13d30682e8dee191ac04e93642f0372a723e8b0c upstream. If byt_wm5102_prepare_and_enable_pll1() fails in the SND_SOC_DAPM_EVENT_ON() path, platform_clock_control() returns after clk_prepare_enable(priv->mclk) without disabling the clock again. This leaks an MCLK enable reference on failed power-up attempts. Add the missing clk_disable_unprepare() on the error path, matching the unwind used by the other Intel platform_clock_control() implementations. Fixes: 9a87fc1e0619 ("ASoC: Intel: bytcr_wm5102: Add machine driver for BYT/WM5102") Cc: stable@vger.kernel.org Signed-off-by: Cássio Gabriel Reviewed-by: Cezary Rojewski Reviewed-by: Hans de Goede Link: https://patch.msgid.link/20260427-bytcr-wm5102-mclk-leak-v1-1-02b96d08e99c@gmail.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/intel/boards/bytcr_wm5102.c | 1 + 1 file changed, 1 insertion(+) --- a/sound/soc/intel/boards/bytcr_wm5102.c +++ b/sound/soc/intel/boards/bytcr_wm5102.c @@ -111,6 +111,7 @@ static int platform_clock_control(struct ret = byt_wm5102_prepare_and_enable_pll1(codec_dai, 48000); if (ret) { dev_err(card->dev, "Error setting codec sysclk: %d\n", ret); + clk_disable_unprepare(priv->mclk); return ret; } } else {