On Wed, 23 Jan 2013, Chen Gang wrote: > for function uhci_sprint_schedule: > the buffer len is MAX_OUTPUT: 64 * 1024, which may not be enough: > may loop UHCI_NUMFRAMES times (UHCI_NUMFRAMES is 1024) > each time of loop may get more than 64 bytes > so need check the buffer length to avoid memory overflow > > this patch fix it like this: > at first, make enough room for buffering the exceeding contents > judge the contents which written whether bigger than buffer length > if bigger (the exceeding contents will be in the exceeding buffer) > break current work flow, and return. > > > Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx> Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html