Re: [PATCH v2] USB: check sg buffer size in usb_submit_urb

2013-06-27 Thread Alan Stern
On Wed, 26 Jun 2013, Ming Lei wrote: USB spec stats that short packet can only appear at the end of transfer. Because lost of HC(EHCI/UHCI/OHCI/...) can't build a full packet from discontinuous buffers, we introduce the limit in usb_submit_urb() to avoid such kind of bad sg buffers coming

[PATCH v2] USB: check sg buffer size in usb_submit_urb

2013-06-26 Thread Ming Lei
USB spec stats that short packet can only appear at the end of transfer. Because lost of HC(EHCI/UHCI/OHCI/...) can't build a full packet from discontinuous buffers, we introduce the limit in usb_submit_urb() to avoid such kind of bad sg buffers coming from driver. The limit might be a bit