]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l: mt9v032: Disable clock on error paths
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 24 Nov 2017 22:04:37 +0000 (17:04 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 14:24:01 +0000 (09:24 -0500)
commitc5972a394d1c0391fc3e58a3af66ae132f4fcfc8
tree1d809005ba4840aa10fd58cf15b7306067839112
parent386f0368858dd8a00cac8a3dd869825ea91fb682
media: v4l: mt9v032: Disable clock on error paths

mt9v032_power_on() leaves clk enabled in case of errors,
but it is not expected by its callers.
There is a similar problem in mt9v032_registered().

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/mt9v032.c