]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ddd8e9fd6fdd01710066f9088397f7de0559b5d
tree18c382a43b943a164d0f6f60c4da9cc143c4fa03
parentb72b024818e59ea0a5072a325fb024ecc9139be2
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