g2d: delete timer before initialization
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 18 Jan 2018 08:49:35 +0000 (17:49 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:02 +0000 (14:28 +0900)
Change-Id: I20e08cb2ec0e4cb9760a3bd29acada138fbcf231
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/gpu/exynos/g2d/g2d_task.c

index 0a6d0f01e9b9e594c6a074f9b628af5ffcbb0165..571534ece1a7c3b725e2762aec70da710f030dd8 100644 (file)
@@ -183,6 +183,8 @@ static void g2d_execute_task(struct g2d_device *g2d_dev, struct g2d_task *task)
        list_move_tail(&task->node, &g2d_dev->tasks_active);
        change_task_state_active(task);
 
+       del_timer(&task->timer);
+
        setup_timer(&task->timer,
                    g2d_hw_timeout_handler, (unsigned long)task);