summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/rsv.c
diff options
context:
space:
mode:
authortpugliese <thomas.pugliese@gmail.com>2013-05-20 22:09:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-21 20:48:03 +0200
commit3138887bd8d18173f3c2baf1e43621c49090cd27 (patch)
treed4290319d1cabec3813854fb7ba67f772161a1a6 /drivers/uwb/rsv.c
parentuwb/whci: Use module_pci_driver to register driver (diff)
downloadlinux-3138887bd8d18173f3c2baf1e43621c49090cd27.tar.xz
linux-3138887bd8d18173f3c2baf1e43621c49090cd27.zip
usb: uwb: use correct locking calls for rc data
The rc object's members can be accessed from both a timer and URB callback. Use spin_*_irq instead of spin_*_bh. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb/rsv.c')
-rw-r--r--drivers/uwb/rsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uwb/rsv.c b/drivers/uwb/rsv.c
index f4ae05f78c42..738e8a8cb811 100644
--- a/drivers/uwb/rsv.c
+++ b/drivers/uwb/rsv.c
@@ -872,7 +872,7 @@ void uwb_rsv_queue_update(struct uwb_rc *rc)
*/
void uwb_rsv_sched_update(struct uwb_rc *rc)
{
- spin_lock_bh(&rc->rsvs_lock);
+ spin_lock_irq(&rc->rsvs_lock);
if (!delayed_work_pending(&rc->rsv_update_work)) {
if (rc->set_drp_ie_pending > 0) {
rc->set_drp_ie_pending++;
@@ -881,7 +881,7 @@ void uwb_rsv_sched_update(struct uwb_rc *rc)
uwb_rsv_queue_update(rc);
}
unlock:
- spin_unlock_bh(&rc->rsvs_lock);
+ spin_unlock_irq(&rc->rsvs_lock);
}
/*