diff options
author | David Vrabel <david.vrabel@csr.com> | 2009-02-16 14:37:12 +0000 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2009-02-16 14:37:12 +0000 |
commit | a3c1239eb59c0a907f8be5587d42e950f44543f8 (patch) | |
tree | 03e31c26f0483d3f1e225574e48992b00b43515c /drivers/usb/host/whci | |
parent | d2f8d7ee1a9b4650b4e43325b321801264f7c37a (diff) | |
download | op-kernel-dev-a3c1239eb59c0a907f8be5587d42e950f44543f8.zip op-kernel-dev-a3c1239eb59c0a907f8be5587d42e950f44543f8.tar.gz |
wusb: whci-hcd: always lock whc->lock with interrupts disabled
Always lock whc->lock with spin_lock_irq() or spin_lock_irqsave().
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/usb/host/whci')
-rw-r--r-- | drivers/usb/host/whci/asl.c | 4 | ||||
-rw-r--r-- | drivers/usb/host/whci/pzl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/whci/asl.c b/drivers/usb/host/whci/asl.c index 2291c5f..958751c 100644 --- a/drivers/usb/host/whci/asl.c +++ b/drivers/usb/host/whci/asl.c @@ -227,13 +227,13 @@ void scan_async_work(struct work_struct *work) * Now that the ASL is updated, complete the removal of any * removed qsets. */ - spin_lock(&whc->lock); + spin_lock_irq(&whc->lock); list_for_each_entry_safe(qset, t, &whc->async_removed_list, list_node) { qset_remove_complete(whc, qset); } - spin_unlock(&whc->lock); + spin_unlock_irq(&whc->lock); } /** diff --git a/drivers/usb/host/whci/pzl.c b/drivers/usb/host/whci/pzl.c index 7dc85a0..df8b85f 100644 --- a/drivers/usb/host/whci/pzl.c +++ b/drivers/usb/host/whci/pzl.c @@ -255,13 +255,13 @@ void scan_periodic_work(struct work_struct *work) * Now that the PZL is updated, complete the removal of any * removed qsets. */ - spin_lock(&whc->lock); + spin_lock_irq(&whc->lock); list_for_each_entry_safe(qset, t, &whc->periodic_removed_list, list_node) { qset_remove_complete(whc, qset); } - spin_unlock(&whc->lock); + spin_unlock_irq(&whc->lock); } /** |