diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/page_allocator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/page_allocator.c b/drivers/gpu/nvgpu/common/mm/page_allocator.c index 96f8f242..056c0c8f 100644 --- a/drivers/gpu/nvgpu/common/mm/page_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/page_allocator.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -150,7 +150,7 @@ static void __nvgpu_free_pages(struct nvgpu_page_allocator *a, | |||
150 | kfree(chunk); | 150 | kfree(chunk); |
151 | } | 151 | } |
152 | 152 | ||
153 | kfree(alloc); | 153 | kmem_cache_free(page_alloc_cache, alloc); |
154 | } | 154 | } |
155 | 155 | ||
156 | static int __insert_page_alloc(struct nvgpu_page_allocator *a, | 156 | static int __insert_page_alloc(struct nvgpu_page_allocator *a, |