[PATCH v2 02/17] drm/exynos/ipp: cancel works before command node clean
Andrzej Hajda
a.hajda at samsung.com
Thu Aug 28 02:07:26 PDT 2014
All pending works should be canceled prior to its removal.
Signed-off-by: Andrzej Hajda <a.hajda at samsung.com>
Reviewed-by: Joonyoung Shim <jy0922.shim at samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_ipp.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
index da917ca..9770966 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
@@ -502,6 +502,11 @@ err_clear:
static void ipp_clean_cmd_node(struct ipp_context *ctx,
struct drm_exynos_ipp_cmd_node *c_node)
{
+ /* cancel works */
+ cancel_work_sync(&c_node->start_work->work);
+ cancel_work_sync(&c_node->stop_work->work);
+ cancel_work_sync(&c_node->event_work->work);
+
/* delete list */
list_del(&c_node->list);
--
1.9.1
More information about the dri-devel
mailing list