From 04a961c54f59e60e48a23d2947842a5831efb369 Mon Sep 17 00:00:00 2001 From: Kyle Guo Date: Thu, 28 Jun 2018 10:33:35 -0700 Subject: [PATCH] video: tegra: host: fix error handling in nvdla_open Bug 200399628 JIRA VFND-4862 Change-Id: I37c68e8bb6edfe651bb263f151354e2c0435d690 Signed-off-by: Kyle Guo Reviewed-on: https://git-master.nvidia.com/r/1764572 Reviewed-by: svc-mobile-coverity Reviewed-by: Damian Halas GVS: Gerrit_Virtual_Submit Reviewed-by: Shridhar Rasal Reviewed-by: Prashant Gaikwad Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/nvdla_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla_ioctl.c b/drivers/video/tegra/host/nvdla/nvdla_ioctl.c index 96dfed84..90306b57 100644 --- a/drivers/video/tegra/host/nvdla/nvdla_ioctl.c +++ b/drivers/video/tegra/host/nvdla/nvdla_ioctl.c @@ -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: