summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-11-13 18:53:53 +0100
committerRob Clark <robdclark@gmail.com>2017-12-13 17:01:20 +0100
commit2d2bccef7192fcb18cc447c1dbbb0e059116b8e7 (patch)
tree98f42e14730e2c4aedcff55eb87ed648fba12025
parentdrm/msm: fix msm_rd_dump_submit prototype (diff)
downloadlinux-2d2bccef7192fcb18cc447c1dbbb0e059116b8e7.tar.xz
linux-2d2bccef7192fcb18cc447c1dbbb0e059116b8e7.zip
drm/msm: free kstrdup'd cmdline
Fixes: 18bb8a6 'drm/msm: show task cmdline in gpu recovery messages' Signed-off-by: Rob Clark <robdclark@gmail.com>
-rw-r--r--drivers/gpu/drm/msm/msm_gpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index 232201403439..a335ad43c4eb 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -294,6 +294,8 @@ static void recover_worker(struct work_struct *work)
msm_rd_dump_submit(priv->hangrd, submit,
"offending task: %s (%s)", task->comm, cmd);
+
+ kfree(cmd);
} else {
msm_rd_dump_submit(priv->hangrd, submit, NULL);
}