# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.617 -> 1.618
# drivers/usb/class/bluetty.c 1.23 -> 1.24
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/07/05 [EMAIL PROTECTED] 1.618
# USB: bluetty.c allocation bug fix
#
# In usb_bluetooth_probe, the transfer buffers for the write pool urbs
# are allocated with size 0, because bluetooth->bulk_out_buffer_size isn't set
# until after the loop.
# --------------------------------------------
#
diff -Nru a/drivers/usb/class/bluetty.c b/drivers/usb/class/bluetty.c
--- a/drivers/usb/class/bluetty.c Fri Jul 5 14:50:57 2002
+++ b/drivers/usb/class/bluetty.c Fri Jul 5 14:50:57 2002
@@ -1151,7 +1151,8 @@
endpoint = bulk_out_endpoint[0];
bluetooth->bulk_out_endpointAddress = endpoint->bEndpointAddress;
-
+ bluetooth->bulk_out_buffer_size = endpoint->wMaxPacketSize * 2;
+
/* create our write urb pool */
for (i = 0; i < NUM_BULK_URBS; ++i) {
struct urb *urb = usb_alloc_urb(0, GFP_KERNEL);
@@ -1166,8 +1167,6 @@
}
bluetooth->write_urb_pool[i] = urb;
}
-
- bluetooth->bulk_out_buffer_size = endpoint->wMaxPacketSize * 2;
endpoint = interrupt_in_endpoint[0];
bluetooth->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL);
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Bringing you mounds of caffeinated joy.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel