[PATCH v3 3/3] hwmon: raspberrypi: Fix delayed-work teardown race
Guenter Roeck
linux at roeck-us.net
Wed May 20 06:39:14 PDT 2026
On Sun, May 17, 2026 at 01:34:45PM +0530, Shubham Chakraborty wrote:
> The delayed polling work rearms itself from the work function, so use
> explicit delayed-work setup and cleanup instead of
> devm_delayed_work_autocancel().
>
> Initialize the delayed work with INIT_DELAYED_WORK() and register a
> devres cleanup action that calls disable_delayed_work_sync() during
> teardown.
>
> This addresses the concern raised during review about the polling work
> being able to requeue itself while the driver is being removed.
>
> Signed-off-by: Shubham Chakraborty <chakrabortyshubham66 at gmail.com>
Applied.
Thanks,
Guenter
More information about the linux-arm-kernel
mailing list