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

Steven Rostedt rostedt at goodmis.org
Sat Nov 5 19:05:50 CET 2022


On Sat, 5 Nov 2022 14:03:56 -0400
Steven Rostedt <rostedt at goodmis.org> 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


More information about the Alsa-devel mailing list