diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index 0411e2fa..82e24535 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |||
@@ -314,8 +314,7 @@ void gk20a_scale_init(struct platform_device *pdev) | |||
314 | return; | 314 | return; |
315 | 315 | ||
316 | err_get_freqs: | 316 | err_get_freqs: |
317 | kfree(g->scale_profile); | 317 | kfree(profile); |
318 | g->scale_profile = NULL; | ||
319 | } | 318 | } |
320 | 319 | ||
321 | void gk20a_scale_exit(struct platform_device *pdev) | 320 | void gk20a_scale_exit(struct platform_device *pdev) |