The semaphore is now taken in the callers.

 devio.c |    2 --
 1 files changed, 2 deletions(-)


diff -Nru a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
--- a/drivers/usb/core/devio.c  Wed Apr 14 12:18:08 2004
+++ b/drivers/usb/core/devio.c  Wed Apr 14 12:18:08 2004
@@ -399,7 +399,6 @@
                return -EINVAL;
        err = -EINVAL;
        dev = ps->dev;
-       down(&dev->serialize);
        /* lock against other changes to driver bindings */
        down_write(&usb_bus_type.subsys.rwsem);
        if (test_and_clear_bit(intf, &ps->ifclaimed)) {
@@ -408,7 +407,6 @@
                err = 0;
        }
        up_write(&usb_bus_type.subsys.rwsem);
-       up(&dev->serialize);
        return err;
 }
 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to