Re: [PATCH v3] hwmon: (sht15) Stop deferred work before releasing its resources

From: Guenter Roeck

Date: Sun Oct 25 2026 - 20:20:22 EST


On Fri, Oct 23, 2026 at 09:40:44PM -0400, Myeonghun Pak wrote:
> The IRQ handler and regulator notifier can leave work pending after a
> measurement or notification completes. Neither work item is drained before
> its resources are released on removal or probe failure.
>
> Disable read_work before freeing the IRQ, since the worker can re-enable
> it. Use request_irq()/free_irq() for explicit teardown. Unregister the
> regulator notifier before cancelling update_supply_work and disabling the
> regulator. Apply the same ordering to probe failures.
>
> Fixes: 251eb40f5ccd ("hwmon: sht15 humidity sensor driver")
> Assisted-by: LLM
> Co-developed-by: Ijae Kim <ae878000@xxxxxxxxx>
> Signed-off-by: Ijae Kim <ae878000@xxxxxxxxx>
> Signed-off-by: Myeonghun Pak <mhun512@xxxxxxxxx>

Applied.

Thanks,
Guenter