diff options
author | 2016-10-27 16:27:16 +0300 | |
---|---|---|
committer | 2016-10-29 16:23:48 -0400 | |
commit | 4850cf4581578216468b7b3c3d06cc5abb0a697d (patch) | |
tree | 2edd012551dd4f35a4700357471a7bc1cbfcaef8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | net/mlx4_core: Change the default value of enable_qos (diff) | |
download | linux-dev-4850cf4581578216468b7b3c3d06cc5abb0a697d.tar.xz linux-dev-4850cf4581578216468b7b3c3d06cc5abb0a697d.zip |
net/mlx4_en: Resolve dividing by zero in 32-bit system
When doing roundup_pow_of_two for large enough number with
bit 31, an overflow will occur and a value equal to 1 will
be returned. In this case 1 will be subtracted from the return
value and division by zero will be reached.
Fixes: 31c128b66e5b ("net/mlx4_en: Choose time-stamping shift value according to HW frequency")
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions