mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Fixes to bridge/panel and ingenic-drm
@ 2021-03-27 11:57 Paul Cercueil
  2021-03-27 11:57 ` [PATCH v4 1/3] drm: bridge/panel: Cleanup connector on bridge detach Paul Cercueil
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Paul Cercueil @ 2021-03-27 11:57 UTC (permalink / raw)
  To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart
  Cc: Sam Ravnborg, David Airlie, Daniel Vetter, od, dri-devel,
	linux-kernel, linux-mips, Paul Cercueil

Hi,

This is the V4 of my patchset that attempts to fix use-after-free errors
in bridge/panel.c and in the ingenic-drm driver.

Changes from v3:
- [1/3]: the code now checks (connector->dev) instead of
  (!!panel_bridge->connector.dev)
- [2/3]: the macro is now called drmm_plain_encoder_alloc(), and moved
  to <drm/drm_encoder.h>. It also takes funcs/name parameters to be more
  similar to drmm_encoder_alloc(), although these parameters can very
  well be NULL.
- [3/3] uses the new macro.

V3 had a 4th patch, which was already applied as it received a
reviewed-by tag and could be applied independently.

Cheers,
-Paul

Paul Cercueil (3):
  drm: bridge/panel: Cleanup connector on bridge detach
  drm/encoder: Add macro drmm_plain_encoder_alloc()
  drm/ingenic: Register devm action to cleanup encoders

 drivers/gpu/drm/bridge/panel.c            | 12 ++++++++++++
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 17 +++++++----------
 include/drm/drm_encoder.h                 | 18 ++++++++++++++++++
 3 files changed, 37 insertions(+), 10 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2021-03-29 16:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 11:57 [PATCH v4 0/3] Fixes to bridge/panel and ingenic-drm Paul Cercueil
2021-03-27 11:57 ` [PATCH v4 1/3] drm: bridge/panel: Cleanup connector on bridge detach Paul Cercueil
2021-03-27 11:57 ` [PATCH v4 2/3] drm/encoder: Add macro drmm_plain_encoder_alloc() Paul Cercueil
2021-03-27 23:05   ` Laurent Pinchart
2021-03-29 16:15     ` Paul Cercueil
2021-03-27 11:57 ` [PATCH v4 3/3] drm/ingenic: Register devm action to cleanup encoders Paul Cercueil

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®