]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:46:30 +0000 (10:46 +0200)
commitdae17725d91373bff05888b092de57bbac4db81e
tree857664ce75c150dd25a460ab17adac61184bf979
parent48c794c7e1e3bb89197f2e6070f9faa61e775200
USB: serial: io_edgeport: fix epic-descriptor handling

BugLink: http://bugs.launchpad.net/bugs/1691369
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/usb/serial/io_edgeport.c