[PATCH drm-misc-next v3 0/7] drm/arm/hdlcd: use drm managed resources

Danilo Krummrich posted 7 patches 1 year, 6 months ago
There is a newer version of this series
drivers/gpu/drm/arm/hdlcd_crtc.c | 84 ++++++++++++++++++++++++--------
drivers/gpu/drm/arm/hdlcd_drv.c  | 55 ++++++++++++---------
drivers/gpu/drm/arm/hdlcd_drv.h  |  2 +
3 files changed, 98 insertions(+), 43 deletions(-)
[PATCH drm-misc-next v3 0/7] drm/arm/hdlcd: use drm managed resources
Posted by Danilo Krummrich 1 year, 6 months ago
Hi,

This patch series converts the driver to use drm managed resources to prevent
potential use-after-free issues on driver unbind/rebind and to get rid of the
usage of deprecated APIs.

Changes in v2:
  - drop patch "drm/arm/hdlcd: crtc: use drmm_crtc_init_with_planes()"

Changes in v3:
  - Fix alternate return paths in srcu read-side critical sections causing a
    stall when unregistering the driver.
  - Fix potential null pointer dereference in hdlcd_crtc_cleanup() introduced
    dropping the patch in v2.
  - Add a patch to remove explicit calls to drm_mode_config_cleanup().

Danilo Krummrich (7):
  drm/arm/hdlcd: use drmm_* to allocate driver structures
  drm/arm/hdlcd: replace drm->dev_private with drm_to_hdlcd_priv()
  drm/arm/hdlcd: plane: use drm managed resources
  drm/arm/hdlcd: use drm_dev_unplug()
  drm/arm/hdlcd: crtc: protect device resources after removal
  drm/arm/hdlcd: debugfs: protect device resources after removal
  drm/arm/hdlcd: remove calls to drm_mode_config_cleanup()

 drivers/gpu/drm/arm/hdlcd_crtc.c | 84 ++++++++++++++++++++++++--------
 drivers/gpu/drm/arm/hdlcd_drv.c  | 55 ++++++++++++---------
 drivers/gpu/drm/arm/hdlcd_drv.h  |  2 +
 3 files changed, 98 insertions(+), 43 deletions(-)


base-commit: 08fb97de03aa2205c6791301bd83a095abc1949c
-- 
2.37.3