Files
twx-linux/drivers
Johan Hovold f9cd79e0ad USB: serial: io_ti: fix div-by-zero in set_termios
commit 6aeb75e6ad upstream.

Fix a division-by-zero in set_termios when debugging is enabled and a
high-enough speed has been requested so that the divisor value becomes
zero.

Instead of just fixing the offending debug statement, cap the baud rate
at the base as a zero divisor value also appears to crash the firmware.

Fixes: 1da177e4c3 ("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>
2017-05-25 15:44:40 +02:00
..
2017-04-21 09:31:23 +02:00
2017-05-25 15:44:32 +02:00
2017-05-20 14:28:41 +02:00
2017-02-23 17:44:36 +01:00
2017-04-12 12:41:18 +02:00
2017-04-21 09:31:24 +02:00
2017-03-30 09:41:24 +02:00