+ usb-try-to-debug-bug-8561.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     USB: try to debug Bug 8561
has been added to the -mm tree.  Its filename is
     usb-try-to-debug-bug-8561.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: USB: try to debug Bug 8561
From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

Maybe the serial device driver is submitting an URB that is already in
use.  This patch might catch the error.

Cc: <pfmp.404@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/usb/core/urb.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -puN drivers/usb/core/urb.c~usb-try-to-debug-bug-8561 drivers/usb/core/urb.c
--- a/drivers/usb/core/urb.c~usb-try-to-debug-bug-8561
+++ a/drivers/usb/core/urb.c
@@ -288,6 +288,12 @@ int usb_submit_urb(struct urb *urb, gfp_
 			|| dev->state == USB_STATE_SUSPENDED)
 		return -EHOSTUNREACH;
 
+	/* Not a precise test, but useful for debugging */
+	if (urb->status == -EINPROGRESS) {
+		WARN_ON(1);
+		return -EBUSY;
+	}
+
 	urb->status = -EINPROGRESS;
 	urb->actual_length = 0;
 
_

Patches currently in -mm which might be from stern@xxxxxxxxxxxxxxxxxxx are

origin.patch
git-hid.patch
usb-try-to-debug-bug-8561.patch
make-alt-sysrq-p-display-the-debug-register-contents.patch
freezer-run-show_state-when-freezing-times-out.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux