From: YoungJun Cho Date: Tue, 29 Oct 2013 11:30:26 +0000 (+0900) Subject: drm: delete unconsumed pending event list in drm_events_release X-Git-Tag: v3.13-rc1~76^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dda6805471d4120dba2fa0f2cc1053c2dab28de;p=pandora-kernel.git drm: delete unconsumed pending event list in drm_events_release When there are unconsumed pending events, the events are destroyed by calling destroy callback, but the events list are remained, because there is no list_del(). It is possible that the page flip request is handled after drm_events_release() is called and before drm_fb_release(). In this case a drm_pending_event is remained not freed. So exynos driver checks again to remove it in its post close routine. But the file_priv->event_list contains undeleted ones, this can make oops for accessing invalid memory. Signed-off-by: YoungJun Cho Signed-off-by: Kyungmin Park Signed-off-by: Dave Airlie --- Reading git-diff-tree failed