]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/musb/musb_host.c
ARM: OMAP: MUSB: prevent recursive spinlock in TX path
[linux-2.6-omap-h63xx.git] / drivers / usb / musb / musb_host.c
index 2ad2ed95404aa23c039ef5fde6979a54ddebd357..82e12655dc8857620c23c0ccf9a6663522ff1a2e 100644 (file)
@@ -1757,7 +1757,9 @@ static int musb_urb_enqueue(
        if (!is_host_active(musb) || !musb->is_active)
                return -ENODEV;
 
+       spin_lock_irqsave(&musb->lock, flags);
        ret = usb_hcd_link_urb_to_ep(hcd, urb);
+       spin_unlock_irqrestore(&musb->lock, flags);
        if (ret)
                return ret;