diff options
| author | Xiaolei Wang <xiaolei.wang@windriver.com> | 2026-02-25 11:56:21 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2026-03-11 03:05:35 +0300 |
| commit | f11ae9c04f8368a3b5a0280ef595198dace1c983 (patch) | |
| tree | d9d82e78b136b9e6789e8f87ceb60e4a2576242a /tools/lib/python/abi | |
| parent | 8dd088b8b106f7b119664f965b691785998edcfb (diff) | |
| download | linux-f11ae9c04f8368a3b5a0280ef595198dace1c983.tar.xz | |
media: i2c: ov5647: Fix runtime PM refcount leak in s_ctrl
Three control cases (AUTOGAIN, EXPOSURE_AUTO, ANALOGUE_GAIN) directly
return without calling pm_runtime_put(), causing runtime PM reference
count leaks.
Change these cases from 'return' to 'ret = ... break' pattern to ensure
pm_runtime_put() is always called before function exit.
Fixes: 4f66f36388d5 ("media: i2c: ov5647: Convert to CCI register access helpers")
Cc: stable@vger.kernel.org
Signed-off-by: Xiaolei Wang <xiaolei.wang@windriver.com>
Reviewed-by: Tarang Raval <tarang.raval@siliconsignals.io>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/lib/python/abi')
0 files changed, 0 insertions, 0 deletions
