aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorRoman Smirnov <[email protected]>2024-03-05 13:45:09 +0000
committerJens Axboe <[email protected]>2024-03-06 15:31:54 +0000
commit93f52fbeaf4b676b21acfe42a5152620e6770d02 (patch)
treea88d2800745928881702da81773690cc54950722 /tools/perf/scripts/python/sctop.py
parentdrbd: atomically update queue limits in drbd_reconsider_queue_parameters (diff)
downloadkernel-93f52fbeaf4b676b21acfe42a5152620e6770d02.tar.gz
kernel-93f52fbeaf4b676b21acfe42a5152620e6770d02.zip
block: prevent division by zero in blk_rq_stat_sum()
The expression dst->nr_samples + src->nr_samples may have zero value on overflow. It is necessary to add a check to avoid division by zero. Found by Linux Verification Center (linuxtesting.org) with Svace. Signed-off-by: Roman Smirnov <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions