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

2013-01-08 Thread Alan Stern
Gang: I apologize for taking so long to respond to your patch. I didn't get much work done during the holidays... Overall it looks pretty good. There are a few things that I would prefer to change. On Thu, 20 Dec 2012, Chen Gang wrote: reason (why): for function

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

2013-01-08 Thread Chen Gang
于 2013年01月09日 04:53, Alan Stern 写道: Gang: I apologize for taking so long to respond to your patch. I didn't get much work done during the holidays... I understand. it is necessary to have a rest, so can keep our contributes (work), with efficiency and sustainable. :-) Can you

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

2012-12-20 Thread Chen Gang
reason (why): for function uhci_sprint_schedule: the buffer len is MAX_OUTPUT: 64 * 1024 the buffer 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