drm/amdgpu: Fix possible null pointer dereference
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 17 Oct 2023 20:51:03 +0000 (16:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2023 22:26:52 +0000 (18:26 -0400)
commite6f8588733342c61948fde673a862b53c0d972bc
tree6e1ff29b54963c9d28ca0d9e1f81a008ca1b8c33
parentb1338a8e71acaf68892b390dee0271fe7323b64d
drm/amdgpu: Fix possible null pointer dereference

abo->tbo.resource may be NULL in amdgpu_vm_bo_update.

Fixes: 180253782038 ("drm/ttm: stop allocating dummy resources during BO creation")
Signed-off-by: Felix Kuehling <Felix.Kuehling@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