diff options
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c index 521a87b3..07e3d823 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c | |||
@@ -168,6 +168,8 @@ static struct gk20a_page_alloc *__gk20a_alloc_pages( | |||
168 | } | 168 | } |
169 | } while (!chunk_addr && chunk_len >= a->page_size); | 169 | } while (!chunk_addr && chunk_len >= a->page_size); |
170 | 170 | ||
171 | chunk_pages = chunk_len >> a->page_shift; | ||
172 | |||
171 | if (!chunk_addr) { | 173 | if (!chunk_addr) { |
172 | palloc_dbg(a, "bailing @ 0x%llx\n", chunk_len); | 174 | palloc_dbg(a, "bailing @ 0x%llx\n", chunk_len); |
173 | goto fail_cleanup; | 175 | goto fail_cleanup; |