Bluetooth: Fix cancel_delayed_work_sync usage with locks
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Nov 2011 23:44:22 +0000 (01:44 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 9 Nov 2011 14:33:52 +0000 (12:33 -0200)
commite0f9309f371096b82ad35aa2c27d7f848f37e696
tree37559bcc4c1df1a8d0b69255a45cd265ccb24da3
parent56e5cb86eb377970825486a5861f5926d65e64c1
Bluetooth: Fix cancel_delayed_work_sync usage with locks

The cancel_delayed_work_sync function should not be used if we hold any
locks. Luckily all places where this is the case it is also safe to use
the non-sync version.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c