Hi,
Here's a patch for the USB Bluetooth driver against 2.4.3-pre3 that
fixes a problem that the driver has when the device is unplugged without
shutting down the Bluetooth stack first.
thanks,
greg k-h
--
greg@(kroah|wirex).com
diff -Naur -X dontdiff linux-2.4.3-pre3/drivers/usb/bluetooth.c
linux-2.4.3-pre3-greg/drivers/usb/bluetooth.c
--- linux-2.4.3-pre3/drivers/usb/bluetooth.c Thu Feb 22 23:43:25 2001
+++ linux-2.4.3-pre3-greg/drivers/usb/bluetooth.c Sat Mar 10 21:56:07 2001
@@ -1,11 +1,17 @@
/*
- * bluetooth.c Version 0.7
+ * bluetooth.c Version 0.8
*
* Copyright (c) 2000 Greg Kroah-Hartman <[EMAIL PROTECTED]>
* Copyright (c) 2000 Mark Douglas Corner <[EMAIL PROTECTED]>
*
* USB Bluetooth driver, based on the Bluetooth Spec version 1.0B
*
+ * (2001/03/10) Version 0.8 gkh
+ * Fixed problem with not unlinking interrupt urb on device close
+ * and resubmitting the read urb on error with bluetooth struct.
+ * Thanks to Narayan Mohanram <[EMAIL PROTECTED]> for the
+ * fixes.
+ *
* (11/29/2000) Version 0.7 gkh
* Fixed problem with overrunning the tty flip buffer.
* Removed unneeded NULL pointer initialization.
@@ -379,6 +385,7 @@
for (i = 0; i < NUM_BULK_URBS; ++i)
usb_unlink_urb (bluetooth->write_urb_pool[i]);
usb_unlink_urb (bluetooth->read_urb);
+ usb_unlink_urb (bluetooth->interrupt_in_urb);
bluetooth->active = 0;
}
@@ -852,7 +859,7 @@
if (!bluetooth) {
dbg(__FUNCTION__ " - bad bluetooth pointer, exiting");
- goto exit;
+ return;
}
if (urb->status) {