]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: io_edgeport: fix epic-descriptor handling
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 13:56:13 +0000 (14:56 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Jan 2017 15:38:56 +0000 (16:38 +0100)
commitd42cc93ae0090331d70012506d4a68ada7a7a405
treeb49bbf405d2b92610f0ad74fd414aa5f7905e9e3
parent326b71e5c86189fdd72e63b1559dd0294946631d
USB: serial: io_edgeport: fix epic-descriptor handling

Use a dedicated buffer for the DMA transfer and make sure to detect
short transfers to avoid parsing a corrupt descriptor.

Fixes: 7d7d92f08b0e ("USB: add EPIC support to the io_edgeport driver")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/io_edgeport.c