diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-12 14:56:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-14 14:00:19 +0200 |
commit | 6fa44d4ba2126f3e56c6cd39cf54991bbf3bbc46 (patch) | |
tree | 9cdbd2e98b66ecd394a5bd42d4850108d1b15745 /drivers/tty/serial/8250/8250_omap.c | |
parent | 62b8b773ebde042ef7e016c9bed6327306885fee (diff) |
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>
Diffstat (limited to 'drivers/tty/serial/8250/8250_omap.c')
0 files changed, 0 insertions, 0 deletions