USB: serial: iuu_phoenix: fix DMA from stack
authorJohan Hovold <johan@kernel.org>
Mon, 4 Jan 2021 14:50:07 +0000 (15:50 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 4 Jan 2021 15:30:09 +0000 (16:30 +0100)
commit54d0a3ab80f49f19ee916def62fe067596833403
treea6f7c513df2778bd4535285227a594b96bc28c46
parent0e2d6795e8dbe91c2f5473564c6b25d11df3778b
USB: serial: iuu_phoenix: fix DMA from stack

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>
drivers/usb/serial/iuu_phoenix.c