aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2017-05-11 09:41:21 +0000
committerJohan Hovold <[email protected]>2017-05-15 09:52:04 +0000
commit6aeb75e6adfaed16e58780309613a578fe1ee90b (patch)
tree4dfbc9180a80ceffbcf043c58f2fd82cd754138b /scripts/gcc-plugins/cyc_complexity_plugin.c
parentUSB: serial: mct_u232: fix big-endian baud-rate handling (diff)
downloadkernel-6aeb75e6adfaed16e58780309613a578fe1ee90b.tar.gz
kernel-6aeb75e6adfaed16e58780309613a578fe1ee90b.zip
USB: serial: io_ti: fix div-by-zero in set_termios
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: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable <[email protected]> # 2.6.12 Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions