USB: usbtmc: fix DMA on stack
authorOliver Neukum <oneukum@suse.de>
Mon, 19 May 2014 11:54:57 +0000 (13:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:03:57 +0000 (16:03 -0700)
commitd846b7650db3fcca7901b6e23f6416c3601a3dfe
tree750ca1f6bd5b2b287a9123f7208589d4f9264b67
parentd1b781002b31247d38a2892c51b88348d6a8f201
USB: usbtmc: fix DMA on stack

send_request_dev_dep_msg_in() use a buffer allocated on the stack.
Fix by kmalloc()ing the buffer.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c