]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9ed36cad73091625ab1baa5395798b896e55ee3
tree8341512ca2b54d65a97dc430994d539871d99ba8
parenta245803230f587f66ceddc152f3504b2a960aac2
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