diff options
| author | 2026-10-23 21:40:44 -0400 | |
|---|---|---|
| committer | 2026-11-02 07:00:04 -0800 | |
| commit | 5eab1e7f7ed12893f3864fe46ffcd5a41a752d6a (patch) | |
| tree | ee3dc2d40d92ba224c1693c0c9c4a031cd461a1b /scripts/Makefile.thinlto | |
| parent | Linux 7.4-rc1 (diff) | |
hwmon: (sht15) Stop deferred work before releasing its resources
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")
Cc: stable@vger.kernel.org
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Link: https://patch.msgid.link/20261024014044.27853-1-mhun512@gmail.com
[groeck: Dropped obsolete 'Assisted-by: tag]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
