drm/msm: free kstrdup'd cmdline
authorRob Clark <robdclark@gmail.com>
Mon, 13 Nov 2017 17:53:53 +0000 (12:53 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 13 Dec 2017 16:01:20 +0000 (11:01 -0500)
Fixes: 18bb8a6 'drm/msm: show task cmdline in gpu recovery messages'
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gpu.c

index 2322014034398110d879d6c97f7d2e5fe25c68fe..a335ad43c4eb33e7a42605aa8fa2d8b5f1a7b904 100644 (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);
                }