Pete:
This patch for 2.4 adds a missing cpu_to_le32() that was noticed by Alain
Volmat. Please apply.
Alan Stern
Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
--- linux-2.4/drivers/usb/gadget/file_storage.c Mon Jun 7 09:40:55 2004
+++ linux-2.4/drivers/usb/gadget/file_storage.c Mon Jun 7 09:42:27 2004
@@ -1155,8 +1155,6 @@
if (index > 0)
return -EINVAL;
- if (config_desc.wTotalLength > EP0_BUFSIZE)
- return -EDOM;
/* Config (or other speed config) */
memcpy(buf, &config_desc, USB_DT_CONFIG_SIZE);
@@ -3843,8 +3841,8 @@
device_desc.bcdDevice = cpu_to_le16(mod_data.release);
i = (transport_is_cbi() ? 3 : 2); // Number of endpoints
- config_desc.wTotalLength = USB_DT_CONFIG_SIZE + USB_DT_INTERFACE_SIZE
- + USB_DT_ENDPOINT_SIZE * i;
+ config_desc.wTotalLength = cpu_to_le16(USB_DT_CONFIG_SIZE
+ + USB_DT_INTERFACE_SIZE + USB_DT_ENDPOINT_SIZE * i);
intf_desc.bNumEndpoints = i;
intf_desc.bInterfaceSubClass = mod_data.protocol_type;
intf_desc.bInterfaceProtocol = mod_data.transport_type;
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel