[PATCH 1/2] drivers/usb/host/uhci-* : check buffer length to avoid memory overflow

2013-01-23 Thread Chen Gang
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

Re: [PATCH 1/2] drivers/usb/host/uhci-* : check buffer length to avoid memory overflow

2013-01-23 Thread Alan Stern
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 le