[PATCH 4/9] USB usbfs: fix up proc_setconfig
From: Duncan Sands
Date: Wed Apr 14 2004 - 05:43:24 EST
The semaphore is now taken in the caller.
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:17:46 2004
+++ b/drivers/usb/core/devio.c Wed Apr 14 12:17:46 2004
@@ -763,7 +763,6 @@
if (get_user(u, (unsigned int __user *)arg))
return -EFAULT;
- down(&ps->dev->serialize);
actconfig = ps->dev->actconfig;
/* Don't touch the device if any interfaces are claimed.
@@ -799,7 +798,6 @@
else
status = usb_set_configuration(ps->dev, u);
}
- up(&ps->dev->serialize);
return status;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/