diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2017-05-16 18:47:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-17 12:27:40 +0300 |
commit | 628c2893d44876ddd11602400c70606ade62e129 (patch) | |
tree | 7cd93437f41e713887fe43e2a1a4da4db68424af /drivers/usb/storage/onetouch.c | |
parent | 9b31071dd18af2078cd866e39718f51f89b31c89 (diff) | |
download | linux-628c2893d44876ddd11602400c70606ade62e129.tar.xz |
USB: ene_usb6250: fix DMA to the stack
The ene_usb6250 sub-driver in usb-storage does USB I/O to buffers on
the stack, which doesn't work with vmapped stacks. This patch fixes
the problem by allocating a separate 512-byte buffer at probe time and
using it for all of the offending I/O operations.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Andreas Hartmann <andihartmann@01019freenet.de>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/storage/onetouch.c')
0 files changed, 0 insertions, 0 deletions