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 04F6D1A3165 for ; Sun, 1 Mar 2026 01:51:26 +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=1772329887; cv=none; b=rPsFdJwnMTGaJR9Ozuh9Vt3v4XU4L0Z9u0W+kpljyQHFPMZDyi40gw2MIWHF2SWG0Y/c32ThJM1RyY7gyWDYPvc5JfG8IqecMGVsYhXoksUFJEx597miWe27Kj5No8E3DjFsZdl1RwV7/OSLKMgjSSn3u9HydERLh5g8mK8naZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329887; c=relaxed/simple; bh=gnPunrjRUMFd8H8KWIokCy+O4evplR15fjM26Jg+GMY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o7SkPI96MTediy6wW81ngjegcvrfSVnJnFTV0dqMNuecY86Tab0UumP7ZDWnTqRWK/SnEB/z1CF6Fti2XULOFyomZAE+cHEphvro0J5rc3tfyeBEIGQbmq1meF4TVdcGk0n/glKAsPbF/HfbiXNJMnBK19ee16bJl/f94IIVtjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fpl/c7ID; 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="Fpl/c7ID" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A462C19424; Sun, 1 Mar 2026 01:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329886; bh=gnPunrjRUMFd8H8KWIokCy+O4evplR15fjM26Jg+GMY=; h=From:To:Cc:Subject:Date:From; b=Fpl/c7IDNCIvGr+EzJhclGT3Lja2u1FxPgWA1rmbsLY9kSHyPiXezifuH1ws6J1kL 5k3yarYUIdQvlUumrOYIXsTfI1zJQpjZ5XlZiP58B0yoUYVZLrfLld2Fk8VveofdbK Cwyd7lXpskLvJvmI1eowUQ9WnmlO1G75nHhSSjs5YZdP+TyO8UpWsACuhLu8V4Hx0Q 44On6ctXBMbdxv0b63RTC70gqyzCguUty4X4380+asSikADiyw7CkOBC6UliRs+qEh xvdDfJ0JngyXc6tITFpUq83m3+yMPs3VXhJww1lYwykN8p9Q9a4D2LtTAp31W/IABW 8dwld7m6LOhnQ== 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.15-stable tree Date: Sat, 28 Feb 2026 20:51:24 -0500 Message-ID: <20260301015125.1717695-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.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 . 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