diff options
| author | Eugenia Emantayev <eugenia@mellanox.com> | 2016-10-27 16:27:16 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-10 07:41:35 -0800 |
| commit | 61918dbc7efef25294f32431869720d99772b4ca (patch) | |
| tree | 420ea71d243a37233aa18946c8019d4d1b91ed69 /fs/btrfs/disk-io.c | |
| parent | 80176161f4514af9064f75a52a5dece6084128b5 (diff) | |
net/mlx4_en: Resolve dividing by zero in 32-bit system
[ Upstream commit 4850cf4581578216468b7b3c3d06cc5abb0a697d ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions
