diff options
author | Gal Pressman <galp@mellanox.com> | 2016-09-07 19:07:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-08 16:15:29 -0700 |
commit | 7abc2110779b133e54ce681a4d0be3d89304eda1 (patch) | |
tree | 0d63b3aedbff7c0d3111571bd47d7007d0adbbab /.cocciconfig | |
parent | e7e31ca43d6bedf1c551b1f9c7e78d51c9a45790 (diff) | |
download | blackbird-op-linux-7abc2110779b133e54ce681a4d0be3d89304eda1.tar.gz blackbird-op-linux-7abc2110779b133e54ce681a4d0be3d89304eda1.zip |
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>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions