diff options
| author | 2026-08-02 19:07:01 +0000 | |
|---|---|---|
| committer | 2026-08-07 23:51:05 +0100 | |
| commit | d378fceaafd79e0dc59d3546bda251a3058062c0 (patch) | |
| tree | 5207f47cc3d359cd6bcae6a045c20ffd54ba7fdf /scripts/Makefile.thinlto | |
| parent | iio: gyro: mpu3050: fix sign of raw angular velocity readings (diff) | |
iio: light: apds9306: fix PM reference leak in apds9306_read_data()
apds9306_read_data() calls pm_runtime_resume_and_get() but several
error paths return directly without calling pm_runtime_put_autosuspend(),
leaking the runtime PM reference and preventing the device from
autosuspending.
Use PM_RUNTIME_ACQUIRE_AUTOSUSPEND() and PM_RUNTIME_ACQUIRE_ERR() to
automatically handle runtime PM reference release on all return paths.
Fixes: 620d1e6c7a3f ("iio: light: Add support for APDS9306 Light Sensor")
Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
