Bluetooth: Remove usage of __cancel_delayed_work()
authorUlisses Furquim <ulisses@profusion.mobi>
Mon, 30 Jan 2012 20:26:28 +0000 (18:26 -0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:30 +0000 (17:01 +0200)
commit17cd3f374be6648bd46c86ff8f2a2511d3f416ee
tree18c382a43b943a164d0f6f60c4da9cc143c4fa03
parente72acc13c770a82b4ce4a07e9716f29320eae0f8
Bluetooth: Remove usage of __cancel_delayed_work()

__cancel_delayed_work() is being used in some paths where we cannot
sleep waiting for the delayed work to finish. However, that function
might return while the timer is running and the work will be queued
again. Replace the calls with safer cancel_delayed_work() version
which spins until the timer handler finishes on other CPUs and
cancels the delayed work.

Signed-off-by: Ulisses Furquim <ulisses@profusion.mobi>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c