diff options
| author | Mitch A Williams <[email protected]> | 2012-06-30 00:23:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2012-07-01 00:40:45 +0000 |
| commit | 0e90b49ca4b891f085b57559a3071a4feefb496c (patch) | |
| tree | f34c038e177f5ab0779870b6d2a40e0b155bc515 /tools/perf/util/trace-event-scripting.c | |
| parent | Merge branch 'master' of git://1984.lsi.us.es/nf (diff) | |
| download | kernel-0e90b49ca4b891f085b57559a3071a4feefb496c.tar.gz kernel-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 <[email protected]> [3.3+]
CC: David Ahern <[email protected]>
Signed-off-by: Mitch Williams <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
