mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/mediatek: fixes for ovl_adaptor
@ 2024-06-24 16:43 Javier Carrasco
  2024-06-24 16:43 ` [PATCH 1/3] drm/mediatek: ovl_adaptor: drop unused mtk_crtc.h header Javier Carrasco
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Javier Carrasco @ 2024-06-24 16:43 UTC (permalink / raw)
  To: Chun-Kuang Hu, Philipp Zabel, David Airlie, Daniel Vetter,
	Matthias Brugger, AngeloGioacchino Del Regno, Nancy.Lin
  Cc: dri-devel, linux-mediatek, linux-kernel, linux-arm-kernel,
	Javier Carrasco, stable

The main fix is a possible memory leak on an early exit in the
for_each_child_of_node() loop. That fix has been divided into a patch
that can be backported (a simple of_node_put()), and another one that
uses the scoped variant of the macro, removing the need for any
of_node_put(). That prevents mistakes if new break/return instructions
are added, but the macro might not be available in older kernels.

When at it, an unused header has been dropped.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (3):
      drm/mediatek: ovl_adaptor: drop unused mtk_crtc.h header
      drm/mediatek: ovl_adaptor: add missing of_node_put()
      drm/mediatek: ovl_adaptor: use scoped variant of for_each_child_of_node()

 drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
base-commit: f76698bd9a8ca01d3581236082d786e9a6b72bb7
change-id: 20240624-mtk_disp_ovl_adaptor_scoped-0702a6b23443

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


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

end of thread, other threads:[~2024-08-15 13:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-24 16:43 [PATCH 0/3] drm/mediatek: fixes for ovl_adaptor Javier Carrasco
2024-06-24 16:43 ` [PATCH 1/3] drm/mediatek: ovl_adaptor: drop unused mtk_crtc.h header Javier Carrasco
2024-08-12  3:18   ` CK Hu (胡俊光)
2024-06-24 16:43 ` [PATCH 2/3] drm/mediatek: ovl_adaptor: add missing of_node_put() Javier Carrasco
2024-08-12  3:53   ` CK Hu (胡俊光)
2024-06-24 16:43 ` [PATCH 3/3] drm/mediatek: ovl_adaptor: use scoped variant of for_each_child_of_node() Javier Carrasco
2024-08-12  6:02   ` CK Hu (胡俊光)
2024-08-15 13:57 ` [PATCH 0/3] drm/mediatek: fixes for ovl_adaptor 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

all inboxes | Powered by JetHome®