summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/msm_gpu.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2016-05-03 16:50:26 +0300
committerRob Clark <robdclark@gmail.com>2016-05-08 17:22:18 +0300
commit40e6815bba6e34e5560e8855b43cd3eb17b24b09 (patch)
tree4ab8a563c1e43974f3d4edc12f1e20625176727f /drivers/gpu/drm/msm/msm_gpu.c
parent6860b56c4b84bf9dba479c3f881d45a0b09a879c (diff)
downloadlinux-40e6815bba6e34e5560e8855b43cd3eb17b24b09.tar.xz
drm/msm: fix leak in failed submit path
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.c')
-rw-r--r--drivers/gpu/drm/msm/msm_gpu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index 4c4f4b5abe2c..5aed93a87e4c 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -446,9 +446,7 @@ static void retire_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
drm_gem_object_unreference(&msm_obj->base);
}
- fence_put(submit->fence);
- list_del(&submit->node);
- kfree(submit);
+ msm_gem_submit_free(submit);
}
static void retire_submits(struct msm_gpu *gpu)