Bluetooth: bluecard: Use del_timer_sync() in teardown path
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Mar 2014 15:09:31 +0000 (15:09 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 23 Mar 2014 17:30:22 +0000 (10:30 -0700)
Make sure no timer callback is running before releasing the
datastructure which contains it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/bluecard_cs.c

index a9a989e5ee88036a186cb7b4d88d73a7aafb563d..dfa5043e68bacc9de66f6ce12c565fb8f410f4b1 100644 (file)
@@ -901,7 +901,7 @@ static void bluecard_release(struct pcmcia_device *link)
 
        bluecard_close(info);
 
-       del_timer(&(info->timer));
+       del_timer_sync(&(info->timer));
 
        pcmcia_disable_device(link);
 }