All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Two AST driver fixes
@ 2018-11-05  5:57 Sam Bobroff
  2018-11-05  5:57 ` [PATCH 1/2] drm/ast: Fix incorrect free on ioregs Sam Bobroff
  2018-11-05  5:57 ` [PATCH 2/2] drm/ast: Fix connector leak during driver unload Sam Bobroff
  0 siblings, 2 replies; 11+ messages in thread
From: Sam Bobroff @ 2018-11-05  5:57 UTC (permalink / raw)
  To: airlied, airlied, dri-devel, linux-kernel

Hello,

Here are two (attempted) fixes for the AST DRM driver. The issues they fix are
both seen when the ast driver is unloaded (tested on Power9, although it looks
like the second one is architecture independent).

I'm fairly confident about the first fix, as it looks pretty straight forward.

I'm not sure if the second patch uses the right approach, so I'd appreciate some
feedback. I've had a good look around, and it does seem to fix the problem but
I don't know this area at all.

Note that while it does seem odd to take a reference just before calling
drm_framebuffer_remove(), that seems to be be necessary because
drm_framebuffer_remove() is expecting the framebuffer to be dynamically
allocated (but the AST driver directly contains it) (I saw some references to
this being legacy behaviour).

Cheers,
Sam.

Sam Bobroff (2):
  drm/ast: Fix incorrect free on ioregs
  drm/ast: Fix connector leak during driver unload

 drivers/gpu/drm/ast/ast_fb.c   | 4 ++++
 drivers/gpu/drm/ast/ast_main.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.19.0.2.gcad72f5712


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

end of thread, other threads:[~2018-12-03  0:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05  5:57 [PATCH 0/2] Two AST driver fixes Sam Bobroff
2018-11-05  5:57 ` [PATCH 1/2] drm/ast: Fix incorrect free on ioregs Sam Bobroff
2018-11-05  5:57 ` [PATCH 2/2] drm/ast: Fix connector leak during driver unload Sam Bobroff
2018-11-28 23:40   ` Dave Airlie
2018-11-29  2:00     ` Sam Bobroff
2018-11-29  8:56       ` Daniel Vetter
2018-11-29  8:56         ` Daniel Vetter
2018-11-30  0:17         ` Sam Bobroff
2018-11-30  9:41           ` Daniel Vetter
2018-11-30  9:41             ` Daniel Vetter
2018-12-03  0:46             ` Sam Bobroff

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.