Skip to content

Commit 772cdc9

Browse files
committed
drm/omap: remove extra plane->destroy from crtc destroy
All the planes, including primary planes, are now destroyed by the drm framework. Thus we no longer need the explicit call to plane->destroy from the crtc's destroy function. This patch removes the call, thus fixing the crash caused by double freeing the plane. remove omap_crtc->plane->funcs->destroy(omap_crtc->plane) Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
1 parent 5ac9634 commit 772cdc9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/gpu/drm/omapdrm/omap_crtc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ static void omap_crtc_destroy(struct drm_crtc *crtc)
197197
WARN_ON(omap_crtc->apply_irq.registered);
198198
omap_irq_unregister(crtc->dev, &omap_crtc->error_irq);
199199

200-
omap_crtc->plane->funcs->destroy(omap_crtc->plane);
201200
drm_crtc_cleanup(crtc);
202201

203202
kfree(omap_crtc);

0 commit comments

Comments
 (0)