Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Thomas Gleixner and committed by
Dmitry Torokhov
5fcd4d2c 04421fe2

+1 -1
+1 -1
drivers/input/serio/hp_sdc.c
··· 984 984 free_irq(hp_sdc.irq, &hp_sdc); 985 985 write_unlock_irq(&hp_sdc.lock); 986 986 987 - del_timer(&hp_sdc.kicker); 987 + del_timer_sync(&hp_sdc.kicker); 988 988 989 989 tasklet_kill(&hp_sdc.task); 990 990