Skip to content

Commit 05f8f36

Browse files
oleg-nesterovakpm00
authored andcommitted
drm/pan*: don't abuse current->group_leader
Cleanup and preparation to simplify the next changes. Use current->tgid instead of current->group_leader->pid. Link: https://lkml.kernel.org/r/aXY_0MrQBZWKbbmA@redhat.com Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Steven Price <steven.price@arm.com> Cc: Alice Ryhl <aliceryhl@google.com> Cc: Christan König <christian.koenig@amd.com> Cc: David S. Miller <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Felix Kuehling <felix.kuehling@amd.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Leon Romanovsky <leon@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Simon Horman <horms@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent a87da7a commit 05f8f36

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/panfrost/panfrost_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
static void panfrost_gem_debugfs_bo_add(struct panfrost_device *pfdev,
1818
struct panfrost_gem_object *bo)
1919
{
20-
bo->debugfs.creator.tgid = current->group_leader->pid;
20+
bo->debugfs.creator.tgid = current->tgid;
2121
get_task_comm(bo->debugfs.creator.process_name, current->group_leader);
2222

2323
mutex_lock(&pfdev->debugfs.gems_lock);

drivers/gpu/drm/panthor/panthor_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static void panthor_gem_debugfs_bo_add(struct panthor_gem_object *bo)
2727
struct panthor_device *ptdev = container_of(bo->base.base.dev,
2828
struct panthor_device, base);
2929

30-
bo->debugfs.creator.tgid = current->group_leader->pid;
30+
bo->debugfs.creator.tgid = current->tgid;
3131
get_task_comm(bo->debugfs.creator.process_name, current->group_leader);
3232

3333
mutex_lock(&ptdev->gems.lock);

0 commit comments

Comments
 (0)