Re: [PATCH v4a 00/38] timers: Use timer_shutdown*() before freeing timers

From: Steven Rostedt
Date: Sat Nov 05 2022 - 14:06:05 EST


On Sat, 5 Nov 2022 14:03:56 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> --- a/drivers/isdn/hardware/mISDN/hfcmulti.c
> +++ b/drivers/isdn/hardware/mISDN/hfcmulti.c
> @@ -4544,7 +4544,7 @@ release_port(struct hfc_multi *hc, struct dchannel *dch)
> spin_lock_irqsave(&hc->lock, flags);
>
> if (dch->timer.function) {
> - del_timer(&dch->timer);
> + timer_shutdown(&dch->timer);
> dch->timer.function = NULL;
> }
>

I still hate the above.

-- Steve