drm/msm: Add missing put_task_struct() in debugfs path
[ Upstream commitac3e4f42d5
] Fixes:25faf2f2e0
("drm/msm: Show process names in gem_describe") Signed-off-by: Rob Clark <robdclark@chromium.org> Link: https://lore.kernel.org/r/20220317184550.227991-1-robdclark@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa4845194b
commit
77ffc38e57
@ -937,6 +937,7 @@ void msm_gem_describe(struct drm_gem_object *obj, struct seq_file *m,
|
|||||||
get_pid_task(aspace->pid, PIDTYPE_PID);
|
get_pid_task(aspace->pid, PIDTYPE_PID);
|
||||||
if (task) {
|
if (task) {
|
||||||
comm = kstrdup(task->comm, GFP_KERNEL);
|
comm = kstrdup(task->comm, GFP_KERNEL);
|
||||||
|
put_task_struct(task);
|
||||||
} else {
|
} else {
|
||||||
comm = NULL;
|
comm = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user