diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2018-11-23 16:56:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-12-03 14:39:43 -0500 |
commit | aa35dc3c71950e3fec3e230c06c27c0fbd0067f8 (patch) | |
tree | 09f55bbd0a3d677213dc559f03a9f6decafc3c2a /drivers/hwmon/smsc47b397.c | |
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>
Diffstat (limited to 'drivers/hwmon/smsc47b397.c')
0 files changed, 0 insertions, 0 deletions