Input: hp_sdc - use del_timer_sync() in exit path
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Mar 2014 00:23:35 +0000 (17:23 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Mar 2014 00:25:40 +0000 (17:25 -0700)
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>
drivers/input/serio/hp_sdc.c

index d7a7e54f64651227ca893f20ba729b72bb2c6d2d..852858e5d8d08099f28223221edee453257c9c43 100644 (file)
@@ -984,7 +984,7 @@ static void hp_sdc_exit(void)
        free_irq(hp_sdc.irq, &hp_sdc);
        write_unlock_irq(&hp_sdc.lock);
 
-       del_timer(&hp_sdc.kicker);
+       del_timer_sync(&hp_sdc.kicker);
 
        tasklet_kill(&hp_sdc.task);