From nobody Tue Feb 10 09:59:35 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 2EFA8320CA7 for ; Wed, 7 Jan 2026 13:13:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767791615; cv=none; b=eZBZ+wdJPe2fOn+equnkP9oOL8/rv6kQ5JDMX1wCoVeHcuEGQdk8iSNC59F+tEMz48/oqy6IB5o7a2LRjzQJRmQ/ENeu+4q+cn7/DztKP8XLRjNIlHyIK9rxMzfqYCvMFg5Xd4dhYrvVXxPSoTp3/QRltFBbYd9FoFAxy3M4p8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767791615; c=relaxed/simple; bh=/MPuYjPmKlHUUK2WGZA8i2lxLeuL9ewTQqCpixIOA0s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lzVjVufisiEqduGQUaUibsAKGNJpAywvBeobDaK4bMzRaEWqie+Osrcu7z6kEooTkToALtm4oOV3MiqKHGC2vmo2Iu1wmmw2OylhSa/bQp2ZKdNhggh7Rj9lBrZ7t0BmnR1Plr0FTSU1ExDO4JhERM9BgyYEFLfeST9wmm/y5NM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=M2mj8/5g; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="M2mj8/5g" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id D33401A26D8; Wed, 7 Jan 2026 13:13:31 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A6404606F8; Wed, 7 Jan 2026 13:13:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 88F7A103C8665; Wed, 7 Jan 2026 14:13:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1767791610; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=MCoKJsSGOxfJzIW5p3SIZAP1srznlWRAZromZYZO5jo=; b=M2mj8/5gpJFRA5Clx57brNOnjh6nnw/D7g/n4V+EwHwNaRJWBV5qa19hbzNU4CLkNgnozU mN++TwwBH183XS6yy4N3Tl8Qs1tv2+3fTLxmmO798cVgXa7ThrtIoSDZybqS92YWG9oEc1 oEinqXZ7FCCWnraUztEqUClNbr0BlHKeHEDwLHbCx4tHYOFHna8ZwU/NA0Pcaf+vUpX1tr uIzIpNq1aB9ALF4Q1Qk/GMftMbVljq+sv9h4bFnnp2jQ8GuXsYkNw6KeajszkwCBYIubS7 qEfIz8dMd7Dy71/fLRE0Kr7ExV3YGZEarptQrx69uJkA1efTsW9iZ0wciWYS+Q== From: Luca Ceresoli Date: Wed, 07 Jan 2026 14:12:52 +0100 Subject: [PATCH 01/12] drm: of: drm_of_panel_bridge_remove(): fix device_node leak Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260107-drm-bridge-alloc-getput-drm_of_find_bridge-2-v1-1-283d7bba061a@bootlin.com> References: <20260107-drm-bridge-alloc-getput-drm_of_find_bridge-2-v1-0-283d7bba061a@bootlin.com> In-Reply-To: <20260107-drm-bridge-alloc-getput-drm_of_find_bridge-2-v1-0-283d7bba061a@bootlin.com> To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Philippe Cornu , benjamin.gaignard@linaro.org, Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Adrien Grassein , Liu Ying , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Inki Dae , Jagan Teki , Marek Szyprowski Cc: Hui Pu , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Luca Ceresoli , stable@vger.kernel.org X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 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 Signed-off-by: Luca Ceresoli Acked-by: Maxime Ripard --- 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 7f0256dae3f1..f3e55ea2174c 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 =20 @@ -173,6 +174,8 @@ static inline int drm_of_panel_bridge_remove(const stru= ct device_node *np, bridge =3D of_drm_find_bridge(remote); drm_panel_bridge_remove(bridge); =20 + of_node_put(remote); + return 0; #else return -EINVAL; --=20 2.52.0