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

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>

authored by

Thomas Gleixner and committed by
Marcel Holtmann
d8ff9cdf 533553f8

+1 -1
+1 -1
drivers/bluetooth/bluecard_cs.c
··· 901 901 902 902 bluecard_close(info); 903 903 904 - del_timer(&(info->timer)); 904 + del_timer_sync(&(info->timer)); 905 905 906 906 pcmcia_disable_device(link); 907 907 }