diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c index 137145dd14a9..dc8d9f3216fa 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |||
@@ -315,7 +315,7 @@ int amdgpu_gart_bind(struct amdgpu_device *adev, uint64_t offset, | |||
315 | t = offset / AMDGPU_GPU_PAGE_SIZE; | 315 | t = offset / AMDGPU_GPU_PAGE_SIZE; |
316 | p = t / (PAGE_SIZE / AMDGPU_GPU_PAGE_SIZE); | 316 | p = t / (PAGE_SIZE / AMDGPU_GPU_PAGE_SIZE); |
317 | for (i = 0; i < pages; i++, p++) | 317 | for (i = 0; i < pages; i++, p++) |
318 | adev->gart.pages[p] = pagelist[i]; | 318 | adev->gart.pages[p] = pagelist ? pagelist[i] : NULL; |
319 | #endif | 319 | #endif |
320 | 320 | ||
321 | if (!adev->gart.ptr) | 321 | if (!adev->gart.ptr) |