linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/mediatek: Fix child node refcount handling and use scoped macro
@ 2024-10-11 19:21 Javier Carrasco
  2024-10-11 19:21 ` [PATCH 1/2] drm/mediatek: Fix child node refcount handling in early exit Javier Carrasco
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Javier Carrasco @ 2024-10-11 19:21 UTC (permalink / raw)
  To: Chun-Kuang Hu, Philipp Zabel, David Airlie, Simona Vetter,
	Matthias Brugger, AngeloGioacchino Del Regno, Alexandre Mergnat,
	CK Hu, Jason-JH.Lin
  Cc: dri-devel, linux-mediatek, linux-kernel, linux-arm-kernel,
	Javier Carrasco, stable

This series fixes a wrong handling of the child node within the
for_each_child_of_node() by adding the missing call to of_node_put() to
make it compatible with stable kernels that don't provide the scoped
variant of the macro, which is more secure and was introduced early this
year.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (2):
      drm/mediatek: Fix child node refcount handling in early exit
      drm/mediatek: Switch to for_each_child_of_node_scoped()

 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
base-commit: d61a00525464bfc5fe92c6ad713350988e492b88
change-id: 20241011-mtk_drm_drv_memleak-5e8b8e45ed1c

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-11-04 12:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-11 19:21 [PATCH 0/2] drm/mediatek: Fix child node refcount handling and use scoped macro Javier Carrasco
2024-10-11 19:21 ` [PATCH 1/2] drm/mediatek: Fix child node refcount handling in early exit Javier Carrasco
2024-10-23  2:49   ` CK Hu (胡俊光)
2024-10-28  7:00   ` Chen-Yu Tsai
2024-10-28  9:09   ` AngeloGioacchino Del Regno
2024-10-11 19:21 ` [PATCH 2/2] drm/mediatek: Switch to for_each_child_of_node_scoped() Javier Carrasco
2024-10-23  2:50   ` CK Hu (胡俊光)
2024-10-28  7:00   ` Chen-Yu Tsai
2024-10-28  9:09   ` AngeloGioacchino Del Regno
2024-11-04 12:39 ` [PATCH 0/2] drm/mediatek: Fix child node refcount handling and use scoped macro Chun-Kuang Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).