ice: Check for null pointer dereference when setting rings
authorMichal Swiatkowski <michal.swiatkowski@intel.com>
Wed, 9 Oct 2019 14:09:47 +0000 (07:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 7 Nov 2019 00:41:45 +0000 (16:41 -0800)
commiteb0ee8abfeb9ff4b98e8e40217b8667bfb08587a
treeb9cc85a4f0e35261d5eecea61e7db6a8ead88c4b
parent4e56802e0ef3ed92cb28196ebd91d8fa6455c45f
ice: Check for null pointer dereference when setting rings

Without this check rebuild vsi can lead to kernel panic.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@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_main.c