Commit 37be0f5e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix up spin_unlock_irqrestore() issues in previous patch

parent 15d7be96
...@@ -1283,13 +1283,13 @@ static void hcd_endpoint_disable (struct usb_device *udev, int endpoint) ...@@ -1283,13 +1283,13 @@ static void hcd_endpoint_disable (struct usb_device *udev, int endpoint)
if (urb->status != -EINPROGRESS) if (urb->status != -EINPROGRESS)
continue; continue;
usb_get_urb (urb); usb_get_urb (urb);
spin_unlock (&hcd_data_lock); spin_unlock_irqrestore (&hcd_data_lock, flags);
spin_lock (&urb->lock); spin_lock_irqsave (&urb->lock, flags);
tmp = urb->status; tmp = urb->status;
if (tmp == -EINPROGRESS) if (tmp == -EINPROGRESS)
urb->status = -ESHUTDOWN; urb->status = -ESHUTDOWN;
spin_unlock (&urb->lock); spin_unlock_irqrestore (&urb->lock, flags);
/* kick hcd unless it's already returning this */ /* kick hcd unless it's already returning this */
if (tmp == -EINPROGRESS) { if (tmp == -EINPROGRESS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment