patch-2.4.27 linux-2.4.27/drivers/usb/gadget/config.c

Next file: linux-2.4.27/drivers/usb/gadget/epautoconf.c
Previous file: linux-2.4.27/drivers/usb/gadget/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/drivers/usb/gadget/config.c linux-2.4.27/drivers/usb/gadget/config.c
@@ -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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)