commit | 7abc2110779b133e54ce681a4d0be3d89304eda1 | [log] [tgz] |
---|---|---|
author | Gal Pressman <galp@mellanox.com> | Wed Sep 07 19:07:59 2016 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Sep 08 16:15:29 2016 -0700 |
tree | 0d63b3aedbff7c0d3111571bd47d7007d0adbbab | |
parent | e7e31ca43d6bedf1c551b1f9c7e78d51c9a45790 [diff] |
net/mlx5e: Prevent casting overflow On 64 bits architectures unsigned long is longer than u32, casting to unsigned long will result in overflow. We need to first allocate an unsigned long variable, then assign the wanted value. Fixes: 665bc53969d7 ('net/mlx5e: Use new ethtool get/set link ksettings API') Signed-off-by: Gal Pressman <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>