]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix for division by zero
authorMichal Kosiarz <michal.kosiarz@intel.com>
Tue, 11 Oct 2016 22:26:56 +0000 (15:26 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Oct 2016 21:26:40 +0000 (14:26 -0700)
commit6f06ce832bc1a766a616179dddfac7d5791c70c3
tree78da18c0303a88efe6f24f7544a5b7b63499903b
parent30a2f2e9981e8023a2a07e25eef3570095b8e999
i40e: Fix for division by zero

For some cases when reading from device are incorrect or image is
incorrect, this part of code causes crash due to division by zero.

Change-ID: I8961029a7a87b0a479995823ef8fcbf6471405e1
Signed-off-by: Michal Kosiarz <michal.kosiarz@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_common.c