commit | aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Fri Nov 23 16:56:26 2018 -0500 |
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | Mon Dec 03 14:39:43 2018 -0500 |
tree | 09f55bbd0a3d677213dc559f03a9f6decafc3c2a | |
parent | adcfdbde20dc149084978d4c9efa0a106e73f17e [diff] |
media: DaVinci-VPBE: fix error handling in vpbe_initialize() If vpbe_set_default_output() or vpbe_set_default_mode() fails, vpbe_initialize() returns error code without releasing resources. The patch adds error handling for that case. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>