diff options
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/dma.c b/drivers/gpu/nvgpu/common/linux/dma.c index 53e54bc6..f513dcd6 100644 --- a/drivers/gpu/nvgpu/common/linux/dma.c +++ b/drivers/gpu/nvgpu/common/linux/dma.c | |||
@@ -240,7 +240,7 @@ int nvgpu_dma_alloc_flags_sys(struct gk20a *g, unsigned long flags, | |||
240 | * Before the debug print so we see this in the total. But during | 240 | * Before the debug print so we see this in the total. But during |
241 | * cleanup in the fail path this has to be subtracted. | 241 | * cleanup in the fail path this has to be subtracted. |
242 | */ | 242 | */ |
243 | g->dma_memory_used += mem->aligned_size; | 243 | g->dma_memory_used += PAGE_ALIGN(size); |
244 | 244 | ||
245 | dma_dbg_alloc(g, size, flags, "sysmem"); | 245 | dma_dbg_alloc(g, size, flags, "sysmem"); |
246 | 246 | ||