]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: serial: iuu_phoenix: fix DMA from stack
authorJohan Hovold <johan@kernel.org>
Mon, 4 Jan 2021 14:50:07 +0000 (15:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 18:49:04 +0000 (19:49 +0100)
commit54696754c3785169fef53d07f58cefa712d9a871
tree81679eae00f0c6289769cad74edfa0ef183f57e5
parentf725e36175fc4732c3082aa6ebaef4cdfacb2840
USB: serial: iuu_phoenix: fix DMA from stack

commit 54d0a3ab80f49f19ee916def62fe067596833403 upstream.

Stack-allocated buffers cannot be used for DMA (on all architectures) so
allocate the flush command buffer using kmalloc().

Fixes: 60a8fc017103 ("USB: add iuu_phoenix driver")
Cc: stable <stable@vger.kernel.org> # 2.6.25
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/iuu_phoenix.c