summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-04-27 15:38:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-14 03:05:12 -0400
commita4a1b8ef48ac1407028aa7cda2c95e7f4306577f (patch)
tree9157c0ede34c8ee98b18235d7037608d827c6e8d /drivers/gpu/nvgpu/common/mm/lockless_allocator.c
parent7acc993cdbcc202854f188e7f53646f387573a09 (diff)
gpu: nvgpu: Last fixes for kmem usage
Remove the last usage of vmalloc() that slipped through the cracks. This was possible because depsite not including the vmalloc.h header directly it was implicitly included. Subsequent patches in this series fix the includes in the kmem header files such that this type of mistake will now be much harder. Change-Id: Ibf20994097864283d4881340599ea446758cf5f2 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1472369 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/lockless_allocator.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/lockless_allocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/lockless_allocator.c b/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
index 51e26208..234ae4a3 100644
--- a/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
+++ b/drivers/gpu/nvgpu/common/mm/lockless_allocator.c
@@ -169,7 +169,7 @@ int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *__a,
169 if (err) 169 if (err)
170 goto fail; 170 goto fail;
171 171
172 a->next = vzalloc(sizeof(*a->next) * count); 172 a->next = nvgpu_vzalloc(g, sizeof(*a->next) * count);
173 if (!a->next) { 173 if (!a->next) {
174 err = -ENOMEM; 174 err = -ENOMEM;
175 goto fail; 175 goto fail;