diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 77806a5e..7a1140f9 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -299,9 +299,8 @@ int gk20a_dbg_gpu_dev_release(struct inode *inode, struct file *filp) | |||
299 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "%s", dev_name(dbg_s->dev)); | 299 | gk20a_dbg(gpu_dbg_gpu_dbg | gpu_dbg_fn, "%s", dev_name(dbg_s->dev)); |
300 | 300 | ||
301 | /* unbind if it was bound */ | 301 | /* unbind if it was bound */ |
302 | if (!dbg_s->ch) | 302 | if (dbg_s->ch) |
303 | return 0; | 303 | dbg_unbind_channel_gk20a(dbg_s); |
304 | dbg_unbind_channel_gk20a(dbg_s); | ||
305 | 304 | ||
306 | kfree(dbg_s); | 305 | kfree(dbg_s); |
307 | return 0; | 306 | return 0; |