mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/vc4: use drm managed resources
@ 2022-07-13  8:54 Danilo Krummrich
  2022-07-13  8:54 ` [PATCH 1/3] drm/vc4: plane: " Danilo Krummrich
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Danilo Krummrich @ 2022-07-13  8:54 UTC (permalink / raw)
  To: emma, mripard, daniel, airlied; +Cc: dri-devel, linux-kernel, Danilo Krummrich

This patch series converts DRM modeset object allocations from devm_*()
to drmm_*() memory allocators, or their corresponding convenience
wrappers, respectively, in order to tie the release action to the
underlaying struct drm_device.

This can prevent potential use-after free issues on driver unload or
EPROBE_DEFERRED backoff.

Danilo Krummrich (3):
  drm/vc4: plane: use drm managed resources
  drm/vc4: crtc: use drm managed resources
  drm/vc4: encoder: use drm managed resources

 drivers/gpu/drm/vc4/vc4_crtc.c  |  2 +-
 drivers/gpu/drm/vc4/vc4_dpi.c   | 11 ++++++-----
 drivers/gpu/drm/vc4/vc4_dsi.c   | 10 +++++-----
 drivers/gpu/drm/vc4/vc4_hdmi.c  | 10 ++++++----
 drivers/gpu/drm/vc4/vc4_plane.c | 19 +++++++------------
 drivers/gpu/drm/vc4/vc4_txp.c   |  2 +-
 drivers/gpu/drm/vc4/vc4_vec.c   | 11 ++++++-----
 7 files changed, 32 insertions(+), 33 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-14 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13  8:54 [PATCH 0/3] drm/vc4: use drm managed resources Danilo Krummrich
2022-07-13  8:54 ` [PATCH 1/3] drm/vc4: plane: " Danilo Krummrich
2022-07-13  8:54 ` [PATCH 2/3] drm/vc4: crtc: " Danilo Krummrich
2022-07-13  8:55 ` [PATCH 3/3] drm/vc4: encoder: " Danilo Krummrich
2022-07-13  9:10 ` [PATCH 0/3] drm/vc4: " Maxime Ripard
2022-07-14 14:27   ` Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®