All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/mediatek: fix potential OF node use-after-free
@ 2025-08-29  9:03 Johan Hovold
  2025-08-29  9:03 ` [PATCH 1/2] " Johan Hovold
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Johan Hovold @ 2025-08-29  9:03 UTC (permalink / raw)
  To: Chun-Kuang Hu, Philipp Zabel
  Cc: David Airlie, Simona Vetter, Matthias Brugger,
	AngeloGioacchino Del Regno, Ma Ke, dri-devel, linux-mediatek,
	linux-arm-kernel, linux-kernel, Johan Hovold

A recent change (included in the drm pull request for 6.17-rc4) fixed a
device reference leak but also introduced a potential OF node
use-after-free.

This series fixes the new OF node reference imbalance and drops the
unnecessary gotos introduced by the broken fix, effectively reverting
that change in favour of the minimal fix I had previously posted here:

	https://lore.kernel.org/lkml/20250722092722.425-1-johan@kernel.org/

These should go into 6.17 which (soon) has the broken fix, which was
also marked for stable backport.

Johan


Johan Hovold (2):
  drm/mediatek: fix potential OF node use-after-free
  drm/mediatek: clean up driver data initialisation

 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

-- 
2.49.1



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

end of thread, other threads:[~2025-09-10  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-29  9:03 [PATCH 0/2] drm/mediatek: fix potential OF node use-after-free Johan Hovold
2025-08-29  9:03 ` [PATCH 1/2] " Johan Hovold
2025-09-08  3:41   ` CK Hu (胡俊光)
2025-09-08  3:41     ` CK Hu (胡俊光)
2025-08-29  9:03 ` [PATCH 2/2] drm/mediatek: clean up driver data initialisation Johan Hovold
2025-09-10  1:38   ` CK Hu (胡俊光)
2025-09-10  1:38     ` CK Hu (胡俊光)
2025-09-10  9:33 ` [PATCH 0/2] drm/mediatek: fix potential OF node use-after-free AngeloGioacchino Del Regno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.