mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 5/9] USB usbfs: fix up proc_ioctl
@ 2004-04-14 10:40 Duncan Sands
  0 siblings, 0 replies; only message in thread
From: Duncan Sands @ 2004-04-14 10:40 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-usb-devel, linux-kernel, Frederic Detienne

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:56 2004
+++ b/drivers/usb/core/devio.c	Wed Apr 14 12:17:56 2004
@@ -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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-14 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14 10:40 [PATCH 5/9] USB usbfs: fix up proc_ioctl Duncan Sands

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®