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 0765E35B15A for ; Thu, 20 Nov 2025 16:29:29 +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=1763656169; cv=none; b=R9Vn4ggyHQTndK+T4BaEBWE1wEULZUihPcc6rIXSxk5Nw8kaCFFwak7YrMm7d71Qq7+eTdIMVFyJwNLYbmdUQtaCaDqNd3e6lplZp7TOhc0S4uvF6cRtWahvdw4vy/Hs+oUDSkAyEv0BvP+HC//6sgRPWrUxvLKBlcDKLPOm6d4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763656169; c=relaxed/simple; bh=8KKtBGgBaT/Ri3UMv0DZ4TDi1qX6g3gVbXSdF2L/6xI=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=RzJC1SPZ4gzFT2BO4ldJM+3paPhVtrmSncNMrSDq4knVCu7iqq/JK0jQ4pF4hy4QlvAkJZZaF9QezcOJ8sv+kJ7Nf5VJRs25ZKwnGkxISG2p+LHTxiXYqrXJvGjtF0kMj+CpINMPISgr05HWK+55XpkpYEYdIk9I/rHY4GOgwhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rJMyArwW; 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="rJMyArwW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87460C4CEF1; Thu, 20 Nov 2025 16:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763656168; bh=8KKtBGgBaT/Ri3UMv0DZ4TDi1qX6g3gVbXSdF2L/6xI=; h=Subject:To:Cc:From:Date:From; b=rJMyArwWwXiecZsQkghb9EXDRETjTHCVsoeKxwyn4ggFeW81OsTA43X0VnMgAWyfv 7FZ8hh6mCfZU/qPejAy4L8FFUzY95Zg86EWHx4Ftyc5HgwS5rRyrtwewa9CnZgi1CD EWJG8Aoyz/5LnNVQZqodcz2KIVGBe4t+7wkJf/ME= Subject: FAILED: patch "[PATCH] pmdomain: imx: Fix reference count leak in imx_gpc_remove" failed to apply to 6.1-stable tree To: linmq006@gmail.com,ulf.hansson@linaro.org Cc: From: Date: Thu, 20 Nov 2025 17:29:10 +0100 Message-ID: <2025112009-revenge-lazily-2aa3@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 6.1-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-6.1.y git checkout FETCH_HEAD git cherry-pick -x bbde14682eba21d86f5f3d6fe2d371b1f97f1e61 # git commit -s git send-email --to '' --in-reply-to '2025112009-revenge-lazily-2aa3@gregkh' --subject-prefix 'PATCH 6.1.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 = {