diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-03-23 16:09:31 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-03-23 18:30:22 +0100 |
commit | d8ff9cdf68fd119d491f3de90e1a612afc2f3b2b (patch) | |
tree | ca4cebe5a84e654bebdb11cdfb447369b965e2d4 | |
parent | Bluetooth: Track current configured LE scan type parameter (diff) | |
download | linux-d8ff9cdf68fd119d491f3de90e1a612afc2f3b2b.tar.xz linux-d8ff9cdf68fd119d491f3de90e1a612afc2f3b2b.zip |
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 <tglx@linutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index a9a989e5ee88..dfa5043e68ba 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); } |