Skip to contentSkip to conversation

USB usbfs: fix up proc_ioctl

PATCH In review Duncan Sands 1 participant 1 message Apr 14, 2004 USB

lore
Share & tools
lore
#0 lore raw

PATCH 5/9 USB usbfs: fix up proc_ioctl

The semaphore is now taken in the caller.

 devio.c |    2 --
 1 files changed, 2 deletions(-)
drivers/usb/core/devio.c +0 -2
diff -Nru a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
@@ -1133,7 +1133,6 @@
 		return -ENODEV;
 	}
 
-	down(&ps->dev->serialize);
 	if (ps->dev->state != USB_STATE_CONFIGURED)
 		retval = -ENODEV;
 	else if (!(ifp = usb_ifnum_to_if (ps->dev, ctrl.ifno)))
@@ -1171,7 +1170,6 @@
 		}
 		up_read(&usb_bus_type.subsys.rwsem);
 	}
-	up(&ps->dev->serialize);
 
 	/* cleanup and return */
 	if (retval >= 0