Re: [PATCH] Input: hp_sdc: shut down kicker timer on module exit
From: Dmitry Torokhov
Date: Sun Sep 13 2026 - 21:26:19 EST
On Wed, Sep 02, 2026 at 11:40:04PM +0800, Runyu Xiao wrote:
> hp_sdc_kicker() rearms hp_sdc.kicker with mod_timer() after scheduling the
> tasklet. The module exit path uses timer_delete_sync(). That waits for a
> callback already running but can still leave the timer rearmed.
>
> A callback can therefore leave the timer pending while hp_sdc_exit() tears
> down the driver, allowing timer activity to access dismantled driver state.
>
> Use timer_shutdown_sync() for final teardown. It waits for a running
> callback and prevents rearming after module exit begins.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: Codex:GPT-5
> Signed-off-by: Runyu Xiao <runyu.xiao@xxxxxxxxxx>
Applied, thank you.
--
Dmitry