OSDN Git Service

[PATCH] USB: unsigned long flags
authorPete Zaitcev <zaitcev@redhat.com>
Fri, 4 Aug 2006 23:59:56 +0000 (16:59 -0700)
committerWilly Tarreau <w@1wt.eu>
Sat, 5 Aug 2006 11:29:33 +0000 (13:29 +0200)
After a similar problem surfaced in usbserial, I looked across the code base
and found this instance. The bug is obvious: local_irq_save takes a long,
not int.

Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
drivers/usb/host/usb-ohci.c

index 27fc5fe..82817f5 100644 (file)
@@ -2159,7 +2159,7 @@ static int rh_submit_urb (struct urb * urb)
 static int rh_unlink_urb (struct urb * urb)
 {
        ohci_t * ohci = urb->dev->bus->hcpriv;
-       unsigned int flags;
+       unsigned long flags;
  
        spin_lock_irqsave(&ohci->ohci_lock, flags);
        if (ohci->rh.urb == urb) {