[PATCH 0/2] drm/mediatek: fix potential OF node use-after-free
Johan Hovold
johan at kernel.org
Fri Aug 29 02:03:43 PDT 2025
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
More information about the linux-arm-kernel
mailing list