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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:45:00 +0000 (16:45 +0100)
commitd8b9bab307926f6fcc829063c7e30c59d21e92ab
tree0ddc340d845c17a961cd684091118f99901c923d
parent7f4402438463b25b3fd754e0c9d5f92d408ab127
ice: Check for null pointer dereference when setting rings

[ Upstream commit eb0ee8abfeb9ff4b98e8e40217b8667bfb08587a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c