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 05A322C21F2 for ; Sun, 1 Mar 2026 02:01:31 +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=1772330491; cv=none; b=DyLf2QwxVRC5ZyFMghTXQVDWbHFp61DcCsKTbmSrF1wv9pio2FZvv+hEOjJRM0VVrAn2m4fSzX4u4POoBtrMsNa44p3vcHsY2lEdaRVrmYmqGOke6ndF8a4uHfkUtdAXkKMpxdS+15Cz1x0WamcRL/D3nMdxeuvSFoJf8vKQwFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772330491; c=relaxed/simple; bh=o12VwAnW/TdaYpTsiYs8XiuPjSO1ncLmOpbn2ka9B+k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CzfMwQVNYlB29mysVmK0ZqMYLHU3EkhrqwiYgenvdlJ8wJ6zvBf4zwke/AoJQvWK7IRL3JF/0SKC532vBS9cGLLH54DOUHJYHf8oGcdycF1U7Pu6rb2FzalaYeRj9fRxN9L0l9T9f01VeTPT1t+5hdyEVr/+FH2J3fmR6t42txE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hltPHOY2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hltPHOY2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66965C19421; Sun, 1 Mar 2026 02:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772330490; bh=o12VwAnW/TdaYpTsiYs8XiuPjSO1ncLmOpbn2ka9B+k=; h=From:To:Cc:Subject:Date:From; b=hltPHOY2fv2awZPWP/1CmXE5DigffehLMsxKqPbz0T9xjwB2aQNMnANeXZBPqK5LT E3FnZodW5wiy+Eyl36MpvH7J7qQYPaRVUFYioYvYYgtvGvcflh8HTE+ezswZrIsb5v pt2J06uefIC+75pM8GIXyzuArXWuUzEBRj8IAiONZCHvd05fExk6aldpjXQzsnv1cA ga7B7RSKQqX3Kxj9wyiftLZeYStd3WHO0rLUHtaVgZ2UxmUKwqJlvzhiyPvweIBIvo fpaKKMLp+AhaA6PXXokf0k44pwyEbbxG0J56BqtcwuWFNXrW2HqhKv7rlWg/Z9uhEf E1ceq7Dc19qOw== From: Sasha Levin To: stable@vger.kernel.org, luca.ceresoli@bootlin.com Cc: Maxime Ripard , dri-devel@lists.freedesktop.org Subject: FAILED: Patch "drm: of: drm_of_panel_bridge_remove(): fix device_node leak" failed to apply to 5.10-stable tree Date: Sat, 28 Feb 2026 21:01:28 -0500 Message-ID: <20260301020129.1728791-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-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 . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From a4b4385d0523e39a7c058cb5a6c8269e513126ca Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Fri, 9 Jan 2026 08:31:32 +0100 Subject: [PATCH] drm: of: drm_of_panel_bridge_remove(): fix device_node leak drm_of_panel_bridge_remove() uses of_graph_get_remote_node() to get a device_node but does not put the node reference. Fixes: c70087e8f16f ("drm/drm_of: add drm_of_panel_bridge_remove function") Cc: stable@vger.kernel.org # v4.15 Acked-by: Maxime Ripard Link: https://patch.msgid.link/20260109-drm-bridge-alloc-getput-drm_of_find_bridge-2-v2-1-8bad3ef90b9f@bootlin.com Signed-off-by: Luca Ceresoli --- include/drm/drm_of.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h index 7f0256dae3f13..f3e55ea2174c0 100644 --- a/include/drm/drm_of.h +++ b/include/drm/drm_of.h @@ -5,6 +5,7 @@ #include #include #if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_DRM_PANEL_BRIDGE) +#include #include #endif @@ -173,6 +174,8 @@ static inline int drm_of_panel_bridge_remove(const struct device_node *np, bridge = of_drm_find_bridge(remote); drm_panel_bridge_remove(bridge); + of_node_put(remote); + return 0; #else return -EINVAL; -- 2.51.0