[PATCH] drm/exynos: fix kernel panic issue at drm releasing
Inki Dae
inki.dae at samsung.com
Mon Jan 4 03:57:46 PST 2016
Hi Daniel,
2015년 12월 24일 22:32에 Daniel Stone 이(가) 쓴 글:
> Hi Inki,
>
> On 24 December 2015 at 09:10, Inki Dae <inki.dae at samsung.com> wrote:
>> +void exynos_drm_crtc_cancel_page_flip(struct drm_crtc *crtc)
>> +{
>> + struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
>> + unsigned long flags;
>> +
>> + spin_lock_irqsave(&crtc->dev->event_lock, flags);
>> + exynos_crtc->event = NULL;
>> + spin_unlock_irqrestore(&crtc->dev->event_lock, flags);
>> +}
>
> This will leak the event and event space; you should call
> event->base.destroy() here. With that fixed:
Right. we don't use exynos specific page flip function anymore which managed the event as a list so that the event objects can be freed by postclose callback.
Anyway, would it be better for event->base.destory() to be called between spin lock/unlock?
Thanks,
Inki Dae
> Reviewed-by: Daniel Stone <daniels at collabora.com>
>
> Cheers,
> Daniel
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
More information about the dri-devel
mailing list