From 796c1a9ac892c6cf563f55608e3b66f753228847 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 28 Nov 2017 15:16:06 -0800 Subject: gpu: nvgpu: Use nvgpu_vzalloc() instead of vzalloc() debug_fifo.c uses vzalloc(), but frees the allocation with nvgpu_vfree(). Change the vzalloc() into nvgpu_vzalloc() for consistency. Change-Id: I86facf81752def3dd10fd0cf4cd30e652099f8a5 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1612647 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/debug_fifo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/debug_fifo.c') diff --git a/drivers/gpu/nvgpu/common/linux/debug_fifo.c b/drivers/gpu/nvgpu/common/linux/debug_fifo.c index 59198718..94a16b70 100644 --- a/drivers/gpu/nvgpu/common/linux/debug_fifo.c +++ b/drivers/gpu/nvgpu/common/linux/debug_fifo.c @@ -154,12 +154,12 @@ static int gk20a_fifo_profile_enable(void *data, u64 val) * we enable/disable/enable while kickoff is happening */ if (!nvgpu_ref_get_unless_zero(&f->profile.ref)) { - f->profile.data = vzalloc( - FIFO_PROFILING_ENTRIES * + f->profile.data = nvgpu_vzalloc(g, + FIFO_PROFILING_ENTRIES * sizeof(struct fifo_profile_gk20a)); - f->profile.sorted = vzalloc( - FIFO_PROFILING_ENTRIES * - sizeof(u64)); + f->profile.sorted = nvgpu_vzalloc(g, + FIFO_PROFILING_ENTRIES * + sizeof(u64)); if (!(f->profile.data && f->profile.sorted)) { nvgpu_vfree(g, f->profile.data); nvgpu_vfree(g, f->profile.sorted); -- cgit v1.2.2