summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/comptags.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/comptags.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/comptags.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/comptags.c b/drivers/gpu/nvgpu/common/mm/comptags.c
index 3bde3a53..f6216648 100644
--- a/drivers/gpu/nvgpu/common/mm/comptags.c
+++ b/drivers/gpu/nvgpu/common/mm/comptags.c
@@ -88,7 +88,7 @@ int gk20a_comptag_allocator_init(struct gk20a *g,
88 size--; 88 size--;
89 allocator->bitmap = nvgpu_vzalloc(g, 89 allocator->bitmap = nvgpu_vzalloc(g,
90 BITS_TO_LONGS(size) * sizeof(long)); 90 BITS_TO_LONGS(size) * sizeof(long));
91 if (!allocator->bitmap) 91 if (allocator->bitmap == NULL)
92 return -ENOMEM; 92 return -ENOMEM;
93 93
94 allocator->size = size; 94 allocator->size = size;