summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/cde.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c
index 02ee27bc..5f0dfb0b 100644
--- a/drivers/gpu/nvgpu/common/linux/cde.c
+++ b/drivers/gpu/nvgpu/common/linux/cde.c
@@ -106,12 +106,12 @@ __must_hold(&cde_app->mutex)
106 nvgpu_gmmu_unmap(vm, &g->gr.compbit_store.mem, 106 nvgpu_gmmu_unmap(vm, &g->gr.compbit_store.mem,
107 cde_ctx->backing_store_vaddr); 107 cde_ctx->backing_store_vaddr);
108 108
109 /* free the channel */ 109 /*
110 if (cde_ctx->tsg && ch) { 110 * free the channel
111 gk20a_tsg_unbind_channel(cde_ctx->ch); 111 * gk20a_channel_close() will also unbind the channel from TSG
112 } 112 */
113
114 gk20a_channel_close(ch); 113 gk20a_channel_close(ch);
114 nvgpu_ref_put(&cde_ctx->tsg->refcount, gk20a_tsg_release);
115 115
116 /* housekeeping on app */ 116 /* housekeeping on app */
117 nvgpu_list_del(&cde_ctx->list); 117 nvgpu_list_del(&cde_ctx->list);