Re: [PATCH] iio: accel: kxsd9: Fix runtime PM leak in kxsd9_write_raw()
From: Linus Walleij
Date: Wed Sep 16 2026 - 13:41:31 EST
On Wed, Sep 16, 2026 at 6:12 PM Wentao Liang <vulab@xxxxxxxxxxx> wrote:
> pm_runtime_get_sync() increments the usage counter even on failure, so
> every successful call must be paired with a put. Rejecting an invalid
> scale value returned early and skipped the paired
> pm_runtime_put_autosuspend(), permanently preventing runtime suspend.
>
> Fixes: 9a9a369d6178 ("iio: accel: kxsd9: Deploy system and runtime PM")
> Cc: stable@xxxxxxxxxxxxxxx
It's NOT that important.
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij