diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_arb.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_arb.c b/drivers/gpu/nvgpu/clk/clk_arb.c index e8213b47..e4f658f6 100644 --- a/drivers/gpu/nvgpu/clk/clk_arb.c +++ b/drivers/gpu/nvgpu/clk/clk_arb.c | |||
@@ -296,12 +296,14 @@ int nvgpu_clk_arb_init_arbiter(struct gk20a *g) | |||
296 | 296 | ||
297 | init_fail: | 297 | init_fail: |
298 | 298 | ||
299 | kfree(arb->gpc2clk_f_points); | 299 | if (arb) { |
300 | kfree(arb->mclk_f_points); | 300 | kfree(arb->gpc2clk_f_points); |
301 | kfree(arb->mclk_f_points); | ||
301 | 302 | ||
302 | for (index = 0; index < 2; index++) { | 303 | for (index = 0; index < 2; index++) { |
303 | kfree(arb->vf_table_pool[index].gpc2clk_points); | 304 | kfree(arb->vf_table_pool[index].gpc2clk_points); |
304 | kfree(arb->vf_table_pool[index].mclk_points); | 305 | kfree(arb->vf_table_pool[index].mclk_points); |
306 | } | ||
305 | } | 307 | } |
306 | 308 | ||
307 | kfree(arb); | 309 | kfree(arb); |