diff options
author | Santosh Kumar Singh <kumar.san1093@gmail.com> | 2016-12-19 19:47:44 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-01-31 12:44:51 +0300 |
commit | 2217a1d1cb0673daa398a08475e6c493b1dc663f (patch) | |
tree | 175845198897a1912aa30f47120e8ba2ea75ae6c /drivers/media/pci | |
parent | 7c13a4d6997ddb84b8c27bd90234c5ef1b020226 (diff) | |
download | linux-2217a1d1cb0673daa398a08475e6c493b1dc663f.tar.xz |
[media] 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@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/zoran/zoran_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index 617574cd24a6..180f3d7af3e1 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c @@ -971,6 +971,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); |