[media] vim2m: Clean up file handle in open() error path
authorSantosh Kumar Singh <kumar.san1093@gmail.com>
Mon, 19 Dec 2016 16:12:46 +0000 (14:12 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 09:44:26 +0000 (07:44 -0200)
commit7c13a4d6997ddb84b8c27bd90234c5ef1b020226
tree21f37dc459ec45905316beb394c5dff8162522f1
parentc4d27f4b4dc99715317696556d713f9094dca509
[media] vim2m: 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/platform/vim2m.c