diff options
author | Tal Gilboa <[email protected]> | 2018-03-29 13:53:52 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-03-30 12:56:22 -0400 |
commit | f97c3dc3c0e8d23a5c4357d182afeef4c67f5c33 (patch) | |
tree | da900e635b115f6653c8bf6878295f0aa1b3443d /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
parent | 52a9692a43b8cbca179d2dd02e714df6f1197932 (diff) |
net/dim: Fix int overflow
When calculating difference between samples, the values
are multiplied by 100. Large values may cause int overflow
when multiplied (usually on first iteration).
Fixed by forcing 100 to be of type unsigned long.
Fixes: 4c4dbb4a7363 ("net/mlx5e: Move dynamic interrupt coalescing code to include/linux")
Signed-off-by: Tal Gilboa <[email protected]>
Reviewed-by: Andy Gospodarek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions