]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix possible divide by zero in ixgbe_update_itr
authorDon Skidmore <donald.c.skidmore@intel.com>
Sat, 2 Mar 2013 07:17:37 +0000 (07:17 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 25 Apr 2013 00:29:02 +0000 (17:29 -0700)
commiteee09b980996b4b8f5cabe378bc280552eaa0317
tree24462633c17118c7cb61c2de997047f40b82cba9
parent40ce793ea39deab8540665213ed0574d854bf002
ixgbe: fix possible divide by zero in ixgbe_update_itr

Protect the code by bailing out of ixgbe_update_itr() when this occurs.
The next call to ixgbe_update_itr will continue to dynamically update ITR.

Signed-of-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c