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