usb: misc: legousbtower: Fix buffers on stack
authorMaksim Salau <maksim.salau@gmail.com>
Tue, 25 Apr 2017 19:49:21 +0000 (22:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2017 09:28:45 +0000 (11:28 +0200)
commit942a48730faf149ccbf3e12ac718aee120bb3529
tree8c68d8ca874cfc205a77bfc58f84d10d3083ee6d
parent19445816996d1a89682c37685fe95959631d9f32
usb: misc: legousbtower: Fix buffers on stack

Allocate buffers on HEAP instead of STACK for local structures
that are to be received using usb_control_msg().

Signed-off-by: Maksim Salau <maksim.salau@gmail.com>
Tested-by: Alfredo Rafael Vicente Boix <alviboi@gmail.com>;
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/legousbtower.c