diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 40766857..129921ad 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -1183,6 +1183,7 @@ int gk20a_channel_release(struct inode *inode, struct file *filp) | |||
1183 | gk20a_channel_close(ch); | 1183 | gk20a_channel_close(ch); |
1184 | gk20a_idle(g->dev); | 1184 | gk20a_idle(g->dev); |
1185 | 1185 | ||
1186 | kfree(filp->private_data); | ||
1186 | filp->private_data = NULL; | 1187 | filp->private_data = NULL; |
1187 | return 0; | 1188 | return 0; |
1188 | } | 1189 | } |
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 181140d2..0541f430 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -517,6 +517,7 @@ int gk20a_tsg_dev_release(struct inode *inode, struct file *filp) | |||
517 | return -ENODEV; | 517 | return -ENODEV; |
518 | 518 | ||
519 | kref_put(&tsg->refcount, gk20a_tsg_release); | 519 | kref_put(&tsg->refcount, gk20a_tsg_release); |
520 | kfree(priv); | ||
520 | return 0; | 521 | return 0; |
521 | } | 522 | } |
522 | 523 | ||