aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorSherry Sun <[email protected]>2021-04-27 10:12:26 +0800
committerGreg Kroah-Hartman <[email protected]>2021-05-13 16:07:57 +0200
commitfcb10ee27fb91b25b68d7745db9817ecea9f1038 (patch)
tree2c0c9aa678de749f13abafd7dbd176a64032ed02 /tools/perf/scripts/python/net_dropmonitor.py
parent52008ebd62adc4f7da2518d638555c765c63388e (diff)
tty: serial: fsl_lpuart: fix the potential risk of division or modulo by zero
We should be very careful about the register values that will be used for division or modulo operations, althrough the possibility that the UARTBAUD register value is zero is very low, but we had better to deal with the "bad data" of hardware in advance to avoid division or modulo by zero leading to undefined kernel behavior. Signed-off-by: Sherry Sun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions