mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
media: i2c: imx415: Release runtime PM reference on VBLANK error
The VBLANK path returned immediately when programming VMAX failed after
pm_runtime_get_if_in_use() had taken a runtime PM reference. Break out of
the switch instead so the common pm_runtime_put() path is used.
Fixes: 3bcae55ab9 ("media: i2c: imx415: Add read/write control of VBLANK")
Cc: stable@vger.kernel.org
Reviewed-by: Michael Riesch <michael.riesch@collabora.com>
Signed-off-by: Narasimharao Vadlamudi <ahmisaranrao@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
This commit is contained in:
parent
8cd5735b88
commit
bea3001e0f
|
|
@ -720,7 +720,7 @@ static int imx415_s_ctrl(struct v4l2_ctrl *ctrl)
|
|||
ret = cci_write(sensor->regmap, IMX415_VMAX,
|
||||
format->height + ctrl->val, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
break;
|
||||
/*
|
||||
* Exposure is set based on VMAX which has just changed, so
|
||||
* program exposure register as well
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user