Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8ff9cdf authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Marcel Holtmann
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 533553f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}