summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/debug_gk20a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
index a8b9c5fb..7e7c9cb8 100644
--- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
@@ -61,8 +61,7 @@ static void gk20a_debug_dump_all_channel_status_ramfc(struct gk20a *g,
61 u32 chid; 61 u32 chid;
62 struct ch_state **ch_state; 62 struct ch_state **ch_state;
63 63
64 ch_state = kzalloc(sizeof(*ch_state) 64 ch_state = nvgpu_kzalloc(g, sizeof(*ch_state) * f->num_channels);
65 * f->num_channels, GFP_KERNEL);
66 if (!ch_state) { 65 if (!ch_state) {
67 gk20a_debug_output(o, "cannot alloc memory for channels\n"); 66 gk20a_debug_output(o, "cannot alloc memory for channels\n");
68 return; 67 return;