Skip to content

Commit

Permalink
drm/msm: free kstrdup'd cmdline
Browse files Browse the repository at this point in the history
Fixes: 18bb8a6 'drm/msm: show task cmdline in gpu recovery messages'
Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
robclark committed Dec 13, 2017
1 parent e6756d7 commit 2d2bcce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/msm/msm_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2d2bcce

Please sign in to comment.