]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: amdgpu: Allow NULL pointers at amdgpu_vm_put_task_info()
authorAndré Almeida <andrealmeid@igalia.com>
Tue, 17 Jun 2025 12:49:44 +0000 (09:49 -0300)
committerAndré Almeida <andrealmeid@igalia.com>
Tue, 17 Jun 2025 14:32:47 +0000 (11:32 -0300)
commit2a4f069d0f25e3c3beab98a6eca27f07aa85e135
treedeb9472d6ee755d41710f963772ee6911d8e5941
parente252e3f3488a49267e08ea7d972ac5ba3f2f1763
drm: amdgpu: Allow NULL pointers at amdgpu_vm_put_task_info()

Allow NULL pointers at amdgpu_vm_put_task_info() as it common practice
for "put" or "free" functions. This avoid an extra check for NULL for
callers.

Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250617124949.2151549-2-andrealmeid@igalia.com
Signed-off-by: André Almeida <andrealmeid@igalia.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c