]> git.hungrycats.org Git - linux/commit
USB: serial: io_edgeport: fix descriptor error handling
authorJohan Hovold <johan@kernel.org>
Thu, 12 Jan 2017 13:56:14 +0000 (14:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 07:19:07 +0000 (09:19 +0200)
commit4a60f8b1dc6bac8f56e37150e30e0fa784ecf62a
tree1b0ce2da6636d2bbeea85f904ff252dcd0688c69
parentf7893424ddc829cc3d3d7b75dbfa813d015d2544
USB: serial: io_edgeport: fix descriptor error handling

commit 3c0e25d883d06a1fbd1ad35257e8abaa57befb37 upstream.

Make sure to detect short control-message transfers and log an error
when reading incomplete manufacturer and boot descriptors.

Note that the default all-zero descriptors will now be used after a
short transfer is detected instead of partially initialised ones.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
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