Il 29/08/25 11:03, Johan Hovold ha scritto:
> 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(-)
>
The whole series is
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
*** URGENT ***
CK, please send this immediately, because [1] breaks *ALL MediaTek boards* making
them *unbootable*.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/gpu/drm/mediatek?h=next-20250910&id=1f403699c40f0806a707a9a6eed3b8904224021a
This series fixes the situation and makes them boot again.
Regards,
Angelo