Take two; hopefully not wrapped this time.

Attached patch fixes spurious errors during firmware load. Please
apply to 2.6.16.20 and 2.6.17.

Signed-off-by: Stuart MacDonald <[EMAIL PROTECTED]>

..Stu

--- linux-2.6.16/drivers/usb/serial/whiteheat.c 2006-03-20 00:53:29.000000000 
-0500
+++ linux-2.6.16-wh/drivers/usb/serial/whiteheat.c      2006-05-31 
10:48:18.000000000 -0400
@@ -388,7 +388,7 @@ static int whiteheat_attach (struct usb_
        if (ret) {
                err("%s: Couldn't send command [%d]", 
serial->type->description, ret);
                goto no_firmware;
-       } else if (alen != sizeof(command)) {
+       } else if (alen != 2) {
                err("%s: Send command incomplete [%d]", 
serial->type->description, alen);
                goto no_firmware;
        }
@@ -400,7 +400,7 @@ static int whiteheat_attach (struct usb_
        if (ret) {
                err("%s: Couldn't get results [%d]", 
serial->type->description,ret);
                goto no_firmware;
-       } else if (alen != sizeof(result)) {
+       } else if (alen != sizeof(*hw_info) + 1) {
                err("%s: Get results incomplete [%d]", 
serial->type->description, alen);
                goto no_firmware;
        } else if (result[0] != command[0]) {



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to