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>
This commit is contained in:
Rob Clark 2017-11-13 12:53:53 -05:00
parent e6756d7c1a
commit 2d2bccef71
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}