aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2005-04-11 21:34:17 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-27 17:43:42 -0400
commit72ebddb59a644732ff0240cdf5d216952a2b0c6b (patch)
tree7190d36450a10178d40b5daead69a11ff501bb11 /drivers/usb
parent589a0083a3c9e9610e54984998a46c07a2584b55 (diff)
[PATCH] USB: turn a user mode driver error into a hard error
This patch turns a user mode driver error into a hard error, and updates the relevant diagnostic slightly to help troubleshooting. gphoto was known to have this problem, hopefully it is now fixed (they have had plenty of warning...) This had been left as a soft error to give various user mode drivers a change to be properly fixed, with the statement that starting in about 2.6.10 it would be changed. It had been mostly safe as a soft error ... but that can not be guaranteed. Now that a year has passed, it's time to really insist that the user mode drivers finally fix their relevant bugs. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/devio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 6bfab4bcaa9e..787c27a63c51 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -784,16 +784,16 @@ static int proc_setconfig(struct dev_state *ps, void __user *arg)
784 for (i = 0; i < actconfig->desc.bNumInterfaces; ++i) { 784 for (i = 0; i < actconfig->desc.bNumInterfaces; ++i) {
785 if (usb_interface_claimed(actconfig->interface[i])) { 785 if (usb_interface_claimed(actconfig->interface[i])) {
786 dev_warn (&ps->dev->dev, 786 dev_warn (&ps->dev->dev,
787 "usbfs: interface %d claimed " 787 "usbfs: interface %d claimed by %s "
788 "while '%s' sets config #%d\n", 788 "while '%s' sets config #%d\n",
789 actconfig->interface[i] 789 actconfig->interface[i]
790 ->cur_altsetting 790 ->cur_altsetting
791 ->desc.bInterfaceNumber, 791 ->desc.bInterfaceNumber,
792 actconfig->interface[i]
793 ->dev.driver->name,
792 current->comm, u); 794 current->comm, u);
793#if 0 /* FIXME: enable in 2.6.10 or so */
794 status = -EBUSY; 795 status = -EBUSY;
795 break; 796 break;
796#endif
797 } 797 }
798 } 798 }
799 } 799 }