diff --git a/drivers/gpu/nvgpu/common/mm/page_allocator.c b/drivers/gpu/nvgpu/common/mm/page_allocator.c index 96f8f2427..056c0c8fa 100644 --- a/drivers/gpu/nvgpu/common/mm/page_allocator.c +++ b/drivers/gpu/nvgpu/common/mm/page_allocator.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * 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, kfree(chunk); } - kfree(alloc); + kmem_cache_free(page_alloc_cache, alloc); } static int __insert_page_alloc(struct nvgpu_page_allocator *a,