staging: vt6656: use off stack for out buffer USB transfers.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 22 Apr 2017 10:14:57 +0000 (11:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 May 2017 12:26:59 +0000 (14:26 +0200)
commit265500bf9802a345a3b942d82e4b9292c6e3d92e
treedbadd944cfeac6d9b4bb1aa6328464e292d612e3
parent9d3c45786f27614cea0d656c67f2aa1ac3b76079
staging: vt6656: use off stack for out buffer USB transfers.

commit 12ecd24ef93277e4e5feaf27b0b18f2d3828bc5e upstream.

Since 4.9 mandated USB buffers be heap allocated this causes the driver
to fail.

Since there is a wide range of buffer sizes use kmemdup to create
allocated buffer.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/usbpipe.c