]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/usb/serial/io_edgeport.c
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)
commite4457d9798adb96272468e93da663de9bd0a4198
treeb49bbf405d2b92610f0ad74fd414aa5f7905e9e3
parente3e574ad85a208cb179f33720bb5f12b453de33c
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: 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>
drivers/usb/serial/io_edgeport.c