mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 17:55:05 +03:00
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:
committed by
Laxman Dewangan
parent
1c26dd79dd
commit
04a961c54f
@@ -967,10 +967,10 @@ static int nvdla_open(struct inode *inode, struct file *file)
|
|||||||
|
|
||||||
return nonseekable_open(inode, file);
|
return nonseekable_open(inode, file);
|
||||||
|
|
||||||
err_alloc_queue:
|
|
||||||
nvhost_module_remove_client(pdev, priv);
|
|
||||||
err_alloc_buffer:
|
err_alloc_buffer:
|
||||||
kfree(priv->buffers);
|
kfree(priv->buffers);
|
||||||
|
err_alloc_queue:
|
||||||
|
nvhost_module_remove_client(pdev, priv);
|
||||||
err_add_client:
|
err_add_client:
|
||||||
kfree(priv);
|
kfree(priv);
|
||||||
err_alloc_priv:
|
err_alloc_priv:
|
||||||
|
|||||||
Reference in New Issue
Block a user