Skip to content

drm/mediatek: fix potential OF node use-after-free

Johan Hovold dri-devel linux-arm-kernel linux-mediatek lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/mediatek: fix potential OF node use-after-freedrivers/gpu/drm/mediatek/mtk_drm_drv.c+5 -61 reply
2/2drm/mediatek: clean up driver data initialisationdrivers/gpu/drm/mediatek/mtk_drm_drv.c+4 -81 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCK HuAngeloGioacchino Del Regno
SeriesR-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] drm/mediatek: fix potential OF node use-after-free

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/[email protected]/

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(-)
Signature · 1 line
2.49.1