diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index 2c274f23..0d79b143 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -354,6 +354,8 @@ static int nvgpu_gpu_ioctl_inval_icache( | |||
354 | nvgpu_mutex_acquire(&g->dbg_sessions_lock); | 354 | nvgpu_mutex_acquire(&g->dbg_sessions_lock); |
355 | err = g->ops.gr.inval_icache(g, ch); | 355 | err = g->ops.gr.inval_icache(g, ch); |
356 | nvgpu_mutex_release(&g->dbg_sessions_lock); | 356 | nvgpu_mutex_release(&g->dbg_sessions_lock); |
357 | |||
358 | gk20a_channel_put(ch); | ||
357 | return err; | 359 | return err; |
358 | } | 360 | } |
359 | 361 | ||
@@ -393,6 +395,7 @@ static int nvgpu_gpu_ioctl_set_debug_mode( | |||
393 | err = -ENOSYS; | 395 | err = -ENOSYS; |
394 | nvgpu_mutex_release(&g->dbg_sessions_lock); | 396 | nvgpu_mutex_release(&g->dbg_sessions_lock); |
395 | 397 | ||
398 | gk20a_channel_put(ch); | ||
396 | return err; | 399 | return err; |
397 | } | 400 | } |
398 | 401 | ||