]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix the divide by zero issue
authorKiran Patil <kiran.patil@intel.com>
Wed, 27 Feb 2019 00:35:10 +0000 (16:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Mar 2019 15:19:17 +0000 (08:19 -0700)
commit99b97827f13dd55ddc4ff9977ad889e061ebf2d1
tree172f72febcacf500b71193c9383f5c878360f126
parent98dc574fc4e8addcb43279cea4751da68b5d16fe
ice: fix the divide by zero issue

Static analysis flagged a potential divide by zero error because
vsi->num_rxq can become zero in certain condition and it is used as
divisor.

Signed-off-by: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c