usb: usbtest: Remove stack VLA usage
authorTobin C. Harding <me@tobin.cc>
Fri, 9 Mar 2018 06:11:14 +0000 (17:11 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:10:22 +0000 (09:10 -0800)
commitc53439fbd15600ecd48bfec446c2018e4fa6e241
tree55289a3da82edb2cda51cd158420fa8f1549cbbb
parentcc9debf84ab359aae2becfb4bc9341f7574fe97b
usb: usbtest: Remove stack VLA usage

The kernel would like to have all stack VLA usage removed[1].  We
already have a pre-processor constant defined MAX_SGLEN.  We can use
this instead of the variable param-sglen.

[1]: https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c