Re: [PATCH] More USB fixes for 2.5.67

Greg KH (greg@kroah.com)
Wed, 16 Apr 2003 23:05:05 -0700


ChangeSet 1.1067, 2003/04/14 22:12:51-07:00, greg@kroah.com

[PATCH] USB: keyspan: fixed up might_sleep() problems on device close.

diff -Nru a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
--- a/drivers/usb/serial/keyspan.c Wed Apr 16 10:48:23 2003
+++ b/drivers/usb/serial/keyspan.c Wed Apr 16 10:48:23 2003
@@ -1534,7 +1534,7 @@
this_urb->transfer_buffer_length = sizeof(msg);

this_urb->dev = serial->dev;
- if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
+ if ((err = usb_submit_urb(this_urb, GFP_ATOMIC)) != 0) {
dbg("%s - usb_submit_urb(setup) failed (%d)", __FUNCTION__, err);
}
#if 0
@@ -1659,7 +1659,7 @@
this_urb->transfer_buffer_length = sizeof(msg);

this_urb->dev = serial->dev;
- if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
+ if ((err = usb_submit_urb(this_urb, GFP_ATOMIC)) != 0) {
dbg("%s - usb_submit_urb(setup) failed", __FUNCTION__);
}
#if 0
@@ -1824,7 +1824,7 @@
this_urb->transfer_buffer_length = sizeof(msg);

this_urb->dev = serial->dev;
- if ((err = usb_submit_urb(this_urb, GFP_KERNEL)) != 0) {
+ if ((err = usb_submit_urb(this_urb, GFP_ATOMIC)) != 0) {
dbg("%s - usb_submit_urb(setup) failed (%d)", __FUNCTION__, err);
}
#if 0

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/