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 F28A74D2EDB for ; Wed, 9 Sep 2026 10:14: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=1788948874; cv=none; b=utZnAyvtZ8OxGXIGiHQiTWvTBzu41HW3u+ezi1Ab6QJrTfdU1Bth5nsJSHHGpDSIGSnd3BLaWtEimu4sBiFE4HTyRftqqZHAsL7jNbBlJirjkDQiR8auqzlYSr0Bp/HP/z7nAcI813kcZsnS68E4O8OZ752TZe+Wc6FQh/d9H+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788948874; c=relaxed/simple; bh=FcpX/xVzNITWTFnabdzwel5GMhOpJf02trtm5thffNc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=tSXNPr6BkYvH6dU45jWvN5x2x3JV0TPLHEbyaQFrJ4P5Kb7ajgoQI6M8TW9nxQDjOsh3Y9JsLHWCb3gwcBIcCYZ78CefqjEremJJBU+lEHj6YN9HMYFhLYDeDlc0f/zAR/ElLT3XHnnxf7r2auYVxgdj3koDJnl6nlx0PCSHh2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UlFzDTy8; 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="UlFzDTy8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C664D1F00A3A; Wed, 9 Sep 2026 10:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788948862; bh=xTNRwdNCRwKc5nNIkJ+zvkjspMczhNvIn2FVBugJZQs=; h=Subject:To:Cc:From:Date; b=UlFzDTy8GKmERvZ/9yfaV/3jLb7fx+PYo04u8JMewTIfEWCQag02i7RjRjETw+Yzw FQFXFJQ/5LY0WlVk9IsIOU0SDoMFZCfO2sJGJzfbYtQkO0bUOuWU4VZNlVEDFOiEY3 RFLuoei/HkLBeiyIfmZZ648vYeX3m6LHy0aHYEDU= Subject: FAILED: patch "[PATCH] ASoC: hdac_hda: Fix hlink refcount leak on component" failed to apply to 5.15-stable tree To: haoxiang_li2024@163.com,broonie@kernel.org Cc: From: Date: Wed, 09 Sep 2026 12:03:04 +0200 Message-ID: <2026090904-antiques-gallantly-338c@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 6ad4892c4f5cb437a928a02f5b7d37d496aa9268 # git commit -s git send-email --to '' --in-reply-to '2026090904-antiques-gallantly-338c@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 6ad4892c4f5cb437a928a02f5b7d37d496aa9268 Mon Sep 17 00:00:00 2001 From: Haoxiang Li Date: Mon, 22 Jun 2026 22:56:45 +0800 Subject: [PATCH] ASoC: hdac_hda: Fix hlink refcount leak on component registration failure hdac_hda_dev_probe() gets the HDA link with snd_hdac_ext_bus_link_get() before registering the ASoC component. If component registration fails, the function returns without dropping the link reference. Always call snd_hdac_ext_bus_link_put() after the registration attempt so the reference taken during probe is balanced on both success and failure. Fixes: 6bae5ea94989 ("ASoC: hdac_hda: add asoc extension for legacy HDA codec drivers") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li Link: https://patch.msgid.link/20260622145645.1184986-1-haoxiang_li2024@163.com Signed-off-by: Mark Brown diff --git a/sound/soc/codecs/hdac_hda.c b/sound/soc/codecs/hdac_hda.c index 680e341aa7f1..1ab5f8a26e03 100644 --- a/sound/soc/codecs/hdac_hda.c +++ b/sound/soc/codecs/hdac_hda.c @@ -642,10 +642,8 @@ static int hdac_hda_dev_probe(struct hdac_device *hdev) &hdac_hda_codec, hdac_hda_dais, ARRAY_SIZE(hdac_hda_dais)); - if (ret < 0) { + if (ret < 0) dev_err(&hdev->dev, "%s: failed to register HDA codec %d\n", __func__, ret); - return ret; - } snd_hdac_ext_bus_link_put(hdev->bus, hlink);