]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/pan*: don't abuse current->group_leader
authorOleg Nesterov <oleg@redhat.com>
Sun, 25 Jan 2026 16:07:44 +0000 (17:07 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 3 Feb 2026 16:21:25 +0000 (08:21 -0800)
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>
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panthor/panthor_gem.c

index 8041b65c6609416914765f663e79c77cad8a9f8f..1ff1f2c8b7266f16720f9c4df1c07976e6cadb4e 100644 (file)
@@ -17,7 +17,7 @@
 static void panfrost_gem_debugfs_bo_add(struct panfrost_device *pfdev,
                                        struct panfrost_gem_object *bo)
 {
-       bo->debugfs.creator.tgid = current->group_leader->pid;
+       bo->debugfs.creator.tgid = current->tgid;
        get_task_comm(bo->debugfs.creator.process_name, current->group_leader);
 
        mutex_lock(&pfdev->debugfs.gems_lock);
index fbde78db270a4cbb2c32228c6e9457a7aa7d89eb..29cc57efc4b9ef0fd671ac8e2ee1247b105d36f6 100644 (file)
@@ -27,7 +27,7 @@ static void panthor_gem_debugfs_bo_add(struct panthor_gem_object *bo)
        struct panthor_device *ptdev = container_of(bo->base.base.dev,
                                                    struct panthor_device, base);
 
-       bo->debugfs.creator.tgid = current->group_leader->pid;
+       bo->debugfs.creator.tgid = current->tgid;
        get_task_comm(bo->debugfs.creator.process_name, current->group_leader);
 
        mutex_lock(&ptdev->gems.lock);