OSDN Git Service

USB: serial: io_edgeport: fix epic-descriptor handling
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 13:56:13 +0000 (14:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 May 2017 11:32:56 +0000 (13:32 +0200)
commit5fbabc96225a18be6da7a98264c4a816a2427214
tree1c9b653f9d9f171e0605c7835c2753a9ecb1c417
parentaece86ff48717a18ff38d5e8a2447f94c726a76b
USB: serial: io_edgeport: fix epic-descriptor handling

commit e4457d9798adb96272468e93da663de9bd0a4198 upstream.

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

Fixes: 6e8cf7751f9f ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_edgeport.c