diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c index 17f1e923..f7de17ad 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c | |||
@@ -102,8 +102,11 @@ int gk20a_ctrl_dev_open(struct inode *inode, struct file *filp) | |||
102 | 102 | ||
103 | err = nvgpu_clk_arb_init_session(g, &priv->clk_session); | 103 | err = nvgpu_clk_arb_init_session(g, &priv->clk_session); |
104 | free_ref: | 104 | free_ref: |
105 | if (err) | 105 | if (err) { |
106 | gk20a_put(g); | 106 | gk20a_put(g); |
107 | if (priv) | ||
108 | nvgpu_kfree(g, priv); | ||
109 | } | ||
107 | return err; | 110 | return err; |
108 | } | 111 | } |
109 | int gk20a_ctrl_dev_release(struct inode *inode, struct file *filp) | 112 | int gk20a_ctrl_dev_release(struct inode *inode, struct file *filp) |