summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-09-30 19:46:54 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-02-10 14:57:31 -0500
commit24e8ee192a02ff75a569f8c734efa9b4b5267fc8 (patch)
treec53df60e84a55a4b4911a2d9ef9be12ece758fb2
parentc891fc81ad6760a3a4e0a4b4b9225b9245b3697f (diff)
gpu: nvgpu: Fix call to wrong free function
Fix a mistake in which the wrong free call is used. Bug 1799159 Bug 1823380 Change-Id: I3b60949cabbdb6b4d193c6687657cad606462687 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1283142 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit
-rw-r--r--drivers/gpu/nvgpu/common/mm/page_allocator.c4
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
156static int __insert_page_alloc(struct nvgpu_page_allocator *a, 156static int __insert_page_alloc(struct nvgpu_page_allocator *a,