OSDN Git Service

drm/amdgpu: install stub fence into potential unused fence pointers
authorLang Yu <Lang.Yu@amd.com>
Fri, 5 May 2023 12:14:15 +0000 (20:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:34:15 +0000 (09:34 -0400)
commit187916e6ed9d0c3b3abc27429f7a5f8c936bd1f0
tree7ddccce48101981e8082366f0aefff396b7a0d0c
parentbf7fda0b3736f93ac8b18e7147e1e7acd27e6a19
drm/amdgpu: install stub fence into potential unused fence pointers

When using cpu to update page tables, vm update fences are unused.
Install stub fence into these fence pointers instead of NULL
to avoid NULL dereference when calling dma_fence_wait() on them.

Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c