From: Thomas Gleixner Date: Sun, 23 Mar 2014 15:09:31 +0000 (+0000) Subject: Bluetooth: bluecard: Use del_timer_sync() in teardown path X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d8ff9cdf68fd119d491f3de90e1a612afc2f3b2b;p=linux.git Bluetooth: bluecard: Use del_timer_sync() in teardown path Make sure no timer callback is running before releasing the datastructure which contains it. Signed-off-by: Thomas Gleixner Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index a9a989e5ee880..dfa5043e68bac 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c @@ -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); }