[media] sh_vou: fix memory leak on error paths in sh_vou_open()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 13 Feb 2015 22:39:03 +0000 (19:39 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Mar 2015 17:46:48 +0000 (14:46 -0300)
commit2160abb2945831aaf50d176ef6d070bdbd19130d
treeb4fcd96ae00ae56a8bf24f3a42d45902ec3553a7
parent6ab6a026bc2c8a88aaaa6df86ea543280e25e0f1
[media] sh_vou: fix memory leak on error paths in sh_vou_open()

Memory allocated for sh_vou_file is not deallocated
on error paths in sh_vou_open().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sh_vou.c