[media] zoran: Clean up file handle in open() error path
authorSantosh Kumar Singh <kumar.san1093@gmail.com>
Mon, 19 Dec 2016 16:47:44 +0000 (14:47 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 09:44:51 +0000 (07:44 -0200)
commit2217a1d1cb0673daa398a08475e6c493b1dc663f
tree175845198897a1912aa30f47120e8ba2ea75ae6c
parent7c13a4d6997ddb84b8c27bd90234c5ef1b020226
[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>
drivers/media/pci/zoran/zoran_driver.c