Commit fc74881c authored by Christian König's avatar Christian König Committed by Christian König
Browse files

drm/amdgpu: fix dropped backing store handling in amdgpu_dma_buf_move_notify

parent fea3fdf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach)
	struct amdgpu_vm_bo_base *bo_base;
	int r;

	if (bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
	if (!bo->tbo.resource || bo->tbo.resource->mem_type == TTM_PL_SYSTEM)
		return;

	r = ttm_bo_validate(&bo->tbo, &placement, &ctx);