mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
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:
parent
921fdc45a0
commit
cb66641f81
|
|
@ -849,6 +849,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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user