summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorAya Levin <ayal@mellanox.com>2018-11-15 18:05:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-13 09:21:35 +0100
commitdd3fa93cfc667574e894f99aa02db36537454e42 (patch)
tree4aaf4221bb967c986342ed32f29523e5815eba2f /COPYING
parentebf371aa3c22b8d30a78f8effd9601f27f920229 (diff)
net/mlx4: Fix UBSAN warning of signed integer overflow
[ Upstream commit a463146e67c848cbab5ce706d6528281b7cded08 ] UBSAN: Undefined behavior in drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:626:29 signed integer overflow: 1802201963 + 1802201963 cannot be represented in type 'int' The union of res_reserved and res_port_rsvd[MLX4_MAX_PORTS] monitors granting of reserved resources. The grant operation is calculated and protected, thus both members of the union cannot be negative. Changed type of res_reserved and of res_port_rsvd[MLX4_MAX_PORTS] from signed int to unsigned int, allowing large value. Fixes: 5a0d0a6161ae ("mlx4: Structures and init/teardown for VF resource quotas") Signed-off-by: Aya Levin <ayal@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 'COPYING')
0 files changed, 0 insertions, 0 deletions