All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enforce USB interface claims
@ 2005-01-23 11:12 Chris Wedgwood
  2005-01-25  6:05 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Wedgwood @ 2005-01-23 11:12 UTC (permalink / raw)
  To: Greg KH; +Cc: LKML

Greg,

How would you feel about something like this?

Index: cw-current/drivers/usb/core/devio.c
===================================================================
--- cw-current.orig/drivers/usb/core/devio.c	2005-01-19 14:52:27.987890276 -0800
+++ cw-current/drivers/usb/core/devio.c	2005-01-22 18:09:22.753895659 -0800
@@ -417,10 +417,7 @@
 		return -EINVAL;
 	if (test_bit(ifnum, &ps->ifclaimed))
 		return 0;
-	/* if not yet claimed, claim it for the driver */
-	dev_warn(&ps->dev->dev, "usbfs: process %d (%s) did not claim interface %u before use\n",
-	       current->pid, current->comm, ifnum);
-	return claimintf(ps, ifnum);
+	return -EINVAL;
 }
 
 static int findintfep(struct usb_device *dev, unsigned int ep)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-01-25  8:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23 11:12 [PATCH] Enforce USB interface claims Chris Wedgwood
2005-01-25  6:05 ` Greg KH
2005-01-25  7:21   ` Chris Wedgwood
2005-01-25  8:27   ` Duncan Sands

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.