From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 378F6274FC2 for ; Thu, 20 Nov 2025 16:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763656163; cv=none; b=btGx6YtymnsQszLaWLOJyr9Z+3cUX6/TwoJujn9BmuuV4qfKdp+y1WFYO9XditD1hb2G9bwFTvDo1IF1Ly2FB0fNHftB0bFFcET0OPjguyQ3zev/PJ4W/jteJHxgdJ4VmAtm2Y+ek3xVDuES9AJ5DDi0Kvwd0xnr22Oy0ekOIys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763656163; c=relaxed/simple; bh=goRwWDjDA8f89FtuwMHnYNWn39pzEwM91Lzj4cyvn2o=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=SI97LKCiDU97ApxG47yhyBTtk2Ail4nUjowshjYx7FCoYuT3JHh5GT0MOmuPKlRoQrxuhb0sNCbO8XLLpC15KEHgoP8J1d9cPbYzcB22WAF1zkfCOcUgEPYDkqVjio31f7QmnQ2v2VeAmRO1AkKGzyUyjKuzOi65SQ1v2w5Xoys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h37Kv+dG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="h37Kv+dG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8157C4CEF1; Thu, 20 Nov 2025 16:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763656163; bh=goRwWDjDA8f89FtuwMHnYNWn39pzEwM91Lzj4cyvn2o=; h=Subject:To:Cc:From:Date:From; b=h37Kv+dGL1TuMqFM6mhQIKu3vNFp486OyB2nrscBJtlpdGvLOgLj2wCSA64I5Ztef z/RPXBl0/EEGiMYYPDxhUtV+UquASiM/iG8yfU1W+pMLd7jzk2/z5xhSpeb8pQoQLe 91GXcw8pOj62RrAPtfk6OwQJd6VMvS2vthPwhHzA= Subject: FAILED: patch "[PATCH] pmdomain: imx: Fix reference count leak in imx_gpc_remove" failed to apply to 5.15-stable tree To: linmq006@gmail.com,ulf.hansson@linaro.org Cc: From: Date: Thu, 20 Nov 2025 17:29:10 +0100 Message-ID: <2025112010-chop-refurbish-3f6e@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 bbde14682eba21d86f5f3d6fe2d371b1f97f1e61 # git commit -s git send-email --to '' --in-reply-to '2025112010-chop-refurbish-3f6e@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From bbde14682eba21d86f5f3d6fe2d371b1f97f1e61 Mon Sep 17 00:00:00 2001 From: Miaoqian Lin Date: Tue, 28 Oct 2025 11:16:20 +0800 Subject: [PATCH] pmdomain: imx: Fix reference count leak in imx_gpc_remove of_get_child_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when not needed anymore. Add the missing of_node_put() to avoid refcount leak. Fixes: 721cabf6c660 ("soc: imx: move PGC handling to a new GPC driver") Cc: stable@vger.kernel.org Signed-off-by: Miaoqian Lin Signed-off-by: Ulf Hansson diff --git a/drivers/pmdomain/imx/gpc.c b/drivers/pmdomain/imx/gpc.c index 33991f3c6b55..a34b260274f7 100644 --- a/drivers/pmdomain/imx/gpc.c +++ b/drivers/pmdomain/imx/gpc.c @@ -536,6 +536,8 @@ static void imx_gpc_remove(struct platform_device *pdev) return; } } + + of_node_put(pgc_node); } static struct platform_driver imx_gpc_driver = {