Skip to content

Commit 22e816f

Browse files
Andrzej Hajdadaeinki
authored andcommitted
drm/exynos/ipp: clean memory nodes on command node cleaning
The nodes should be removed before removing command node. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent c4a856a commit 22e816f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎drivers/gpu/drm/exynos/exynos_drm_ipp.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,11 +603,16 @@ static void ipp_clean_mem_nodes(struct drm_device *drm_dev,
603603
static void ipp_clean_cmd_node(struct ipp_context *ctx,
604604
struct drm_exynos_ipp_cmd_node *c_node)
605605
{
606+
int i;
607+
606608
/* cancel works */
607609
cancel_work_sync(&c_node->start_work->work);
608610
cancel_work_sync(&c_node->stop_work->work);
609611
cancel_work_sync(&c_node->event_work->work);
610612

613+
for_each_ipp_ops(i)
614+
ipp_clean_mem_nodes(ctx->subdrv.drm_dev, c_node, i);
615+
611616
/* delete list */
612617
list_del(&c_node->list);
613618

0 commit comments

Comments
 (0)