summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMoksh Panicker <mokshpanicker.7@gmail.com>2026-08-02 19:07:01 +0000
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-08-07 23:51:05 +0100
commitd378fceaafd79e0dc59d3546bda251a3058062c0 (patch)
tree5207f47cc3d359cd6bcae6a045c20ffd54ba7fdf /include/linux
parent06fab97602fe400bea843176f485bbac07a668e2 (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 'include/linux')
0 files changed, 0 insertions, 0 deletions