video: tegra: host: fix error handling in nvdla_open

Bug 200399628
JIRA VFND-4862

Change-Id: I37c68e8bb6edfe651bb263f151354e2c0435d690
Signed-off-by: Kyle Guo <kyleg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1764572
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Damian Halas <dhalas@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Kyle Guo
2018-06-28 10:33:35 -07:00
committed by Laxman Dewangan
parent 1c26dd79dd
commit 04a961c54f

View File

@@ -967,10 +967,10 @@ static int nvdla_open(struct inode *inode, struct file *file)
return nonseekable_open(inode, file);
err_alloc_queue:
nvhost_module_remove_client(pdev, priv);
err_alloc_buffer:
kfree(priv->buffers);
err_alloc_queue:
nvhost_module_remove_client(pdev, priv);
err_add_client:
kfree(priv);
err_alloc_priv: