Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5fcd4d2c authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Dmitry Torokhov
Browse files

Input: hp_sdc - use del_timer_sync() in exit path



Make sure that no callback is running before we teardown the module.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 04421fe2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -984,7 +984,7 @@ static void hp_sdc_exit(void)
	free_irq(hp_sdc.irq, &hp_sdc);
	free_irq(hp_sdc.irq, &hp_sdc);
	write_unlock_irq(&hp_sdc.lock);
	write_unlock_irq(&hp_sdc.lock);


	del_timer(&hp_sdc.kicker);
	del_timer_sync(&hp_sdc.kicker);


	tasklet_kill(&hp_sdc.task);
	tasklet_kill(&hp_sdc.task);