[PATCH v2 0/3] Fixes to bridge/panel and ingenic-drm

From: Paul Cercueil
Date: Wed Jan 20 2021 - 09:24:01 EST


Hi,

Here are three independent fixes. The first one addresses a
use-after-free in bridge/panel.c; the second one addresses a
use-after-free in the ingenic-drm driver; finally, the third one makes
the ingenic-drm driver work again on older Ingenic SoCs.

Changes from v1:
- patch [1/3]: the connector is cleaned up only if it was initialized in
the first place;
- patch [2/3]: use __drmm_simple_encoder_alloc;
- patch [3/3] is unmodified.

Note to linux-stable guys: patch [v2 2/3] will only apply on the current
drm-misc-next branch, to fix it for v5.11 and older kernels, use the V1
of that patch.

Cheers,
-Paul

Paul Cercueil (3):
drm: bridge/panel: Cleanup connector on bridge detach
drm/ingenic: Register devm action to cleanup encoders
drm/ingenic: Fix non-OSD mode

drivers/gpu/drm/bridge/panel.c | 6 +++++
drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 27 ++++++++++++-----------
2 files changed, 20 insertions(+), 13 deletions(-)

--
2.29.2