diff options
author | Mitch A Williams <mitch.a.williams@intel.com> | 2012-06-30 02:23:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-01 02:40:45 +0200 |
commit | 0e90b49ca4b891f085b57559a3071a4feefb496c (patch) | |
tree | f34c038e177f5ab0779870b6d2a40e0b155bc515 /net/tipc/node_subscr.h | |
parent | Merge branch 'master' of git://1984.lsi.us.es/nf (diff) | |
download | linux-0e90b49ca4b891f085b57559a3071a4feefb496c.tar.xz linux-0e90b49ca4b891f085b57559a3071a4feefb496c.zip |
igbvf: fix divide by zero
Using ethtool -C ethX rx-usecs 0 crashes with a divide by zero.
Refactor this function to fix this issue and make it more clear
what the intent of each conditional is. Add comment regarding
using a setting of zero.
CC: stable <stable@vger.kernel.org> [3.3+]
CC: David Ahern <daahern@cisco.com>
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node_subscr.h')
0 files changed, 0 insertions, 0 deletions