]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit7df66d778317353c94c3a2832cd26e320ca28b7d
tree1d809005ba4840aa10fd58cf15b7306067839112
parentb48d908d2b04e5c11bf0f9035bf52f7c0c988603
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