summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorTal Gilboa <talgi@mellanox.com>2018-03-29 12:53:52 +0200
committerDavid S. Miller <davem@davemloft.net>2018-03-30 18:56:22 +0200
commitf97c3dc3c0e8d23a5c4357d182afeef4c67f5c33 (patch)
treeda900e635b115f6653c8bf6878295f0aa1b3443d /net/ipv6
parentMerge branch 'vlan-fix' (diff)
downloadlinux-f97c3dc3c0e8d23a5c4357d182afeef4c67f5c33.tar.xz
linux-f97c3dc3c0e8d23a5c4357d182afeef4c67f5c33.zip
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 <talgi@mellanox.com> Reviewed-by: Andy Gospodarek <gospo@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions