diff options
author | Lang Yu <Lang.Yu@amd.com> | 2023-05-05 20:14:15 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 09:34:15 -0400 |
commit | 187916e6ed9d0c3b3abc27429f7a5f8c936bd1f0 (patch) | |
tree | 7ddccce48101981e8082366f0aefff396b7a0d0c /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | bf7fda0b3736f93ac8b18e7147e1e7acd27e6a19 (diff) | |
download | linux-187916e6ed9d0c3b3abc27429f7a5f8c936bd1f0.tar.gz linux-187916e6ed9d0c3b3abc27429f7a5f8c936bd1f0.tar.bz2 linux-187916e6ed9d0c3b3abc27429f7a5f8c936bd1f0.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions