wusb: Stop using the stack for sg crypto scratch space
authorAndy Lutomirski <luto@kernel.org>
Thu, 6 Oct 2016 17:25:38 +0000 (10:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Oct 2016 09:50:43 +0000 (11:50 +0200)
commita19b882c07a63174f09d1f7c036cc2aab7f04ad3
tree8341512ca2b54d65a97dc430994d539871d99ba8
parent1001354ca34179f3db924eb66672442a173147dc
wusb: Stop using the stack for sg crypto scratch space

Pointing an sg list at the stack is verboten and, with
CONFIG_VMAP_STACK=y, will malfunction.  Use kmalloc for the wusb
crypto stack space instead.

Untested -- I'm not entirely convinced that this hardware exists in
the wild.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/crypto.c