]> www.infradead.org Git - users/dwmw2/linux.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:09:11 +0000 (20:09 +0100)
commit1a3a2e0cd7ded591fd3694cf5a678dec569a8747
tree07d8a1083edc1d8f70b0e0e51a2bc7faa6d24f09
parent3c7829d2c47a23c427ca6e76c9dcef38f288a4d6
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