aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/core/devio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index a1add776e89a..71514be8b715 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -1091,7 +1091,8 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb,
1091 } 1091 }
1092 totlen += isopkt[u].length; 1092 totlen += isopkt[u].length;
1093 } 1093 }
1094 if (totlen > 32768) { 1094 /* 3072 * 64 microframes */
1095 if (totlen > 196608) {
1095 kfree(isopkt); 1096 kfree(isopkt);
1096 return -EINVAL; 1097 return -EINVAL;
1097 } 1098 }