While developing a gadget driver for the 2.4 kernel, I
discovered this error in the gadget driver.  This bug
has been present since the gadget driver was back
ported from the 2.6 kernel.

diff -urN
linux-2.4.27-pre5/drivers/usb/gadget/config.c
linux-2.4.27-test/drivers/usb/gadget/config.c
--- linux-2.4.27-pre5/drivers/usb/gadget/config.c     
 2004-06-14 09:06:48.000000000
-0400
+++ linux-2.4.27-test/drivers/usb/gadget/config.c     
 2004-06-14 09:13:02.000000000
-0400
@@ -51,7 +51,7 @@
        for (; 0 != *src; src++) {
                unsigned                len =
(*src)->bLength;
  
-               if (len > buflen);
+               if (len > buflen)
                        return -EINVAL;
                memcpy(dest, *src, len);
                buflen -= len;


John Carlson <[EMAIL PROTECTED]>



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


-------------------------------------------------------
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

Reply via email to