mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
7acc993cdb
commit
a4a1b8ef48
@@ -169,7 +169,7 @@ int nvgpu_lockless_allocator_init(struct gk20a *g, struct nvgpu_allocator *__a,
|
||||
if (err)
|
||||
goto fail;
|
||||
|
||||
a->next = vzalloc(sizeof(*a->next) * count);
|
||||
a->next = nvgpu_vzalloc(g, sizeof(*a->next) * count);
|
||||
if (!a->next) {
|
||||
err = -ENOMEM;
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user