[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1482166064-3884-1-git-send-email-kumar.san1093@gmail.com>
Date: Mon, 19 Dec 2016 22:17:44 +0530
From: Santosh Kumar Singh <kumar.san1093@...il.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil@...all.nl>,
mjpeg-users@...ts.sourceforge.net
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Santosh Kumar Singh <kumar.san1093@...il.com>
Subject: [PATCH] zoran: Clean up file handle in open() error path.
Fix to avoid possible memory leak and exit file handle
in error paths.
Signed-off-by: Santosh Kumar Singh <kumar.san1093@...il.com>
---
drivers/media/pci/zoran/zoran_driver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c
index d6b631a..13e17a4 100644
--- a/drivers/media/pci/zoran/zoran_driver.c
+++ b/drivers/media/pci/zoran/zoran_driver.c
@@ -975,6 +975,7 @@ static int zoran_open(struct file *file)
return 0;
fail_fh:
+ v4l2_fh_exit(&fh->fh);
kfree(fh);
fail_unlock:
mutex_unlock(&zr->lock);
--
1.9.1
Powered by blists - more mailing lists