usb: misc: usbtest: allocate size of urb array according to user parameter
authorPeter Chen <peter.chen@freescale.com>
Tue, 1 Sep 2015 01:47:58 +0000 (09:47 +0800)
committerFelipe Balbi <balbi@ti.com>
Sun, 27 Sep 2015 15:54:31 +0000 (10:54 -0500)
commit41d3c0b84d6e084865c429b1b6825256c0169319
treead077e9aadd97b4602f21ae2dac00f17b3d2e601
parent95c8bc3609440af5e4a4f760b8680caea7424396
usb: misc: usbtest: allocate size of urb array according to user parameter

Allocate the size of urb pointer array according to testusb's
parameter sglen, and limits the length of sglen as MAX_SGLEN
(128 currently).

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/misc/usbtest.c