]> 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 19:10:21 +0000 (20:10 +0100)
commitaf6b0b6fc174ff2f869a261a64408b186c5e256f
tree43d175c568aa33340284c053ad84e509cdd8ab17
parent01413361185139f3c7b37f5bd92d1badfb46930d
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