Skip to content
Commit feddf6c0 authored by Michal Swiatkowski's avatar Michal Swiatkowski Committed by Greg Kroah-Hartman
Browse files

ice: realloc VSI stats arrays



[ Upstream commit 5995ef88 ]

Previously only case when queues amount is lower was covered. Implement
realloc for case when queues amount is higher than previous one. Use
krealloc() function and zero new allocated elements.

It has to be done before ice_vsi_def_cfg(), because stats element for
ring is set there.

Reviewed-by: default avatarWojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: default avatarSujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Stable-dep-of: 1cb7fdb1 ("ice: fix memory corruption bug with suspend and rebuild")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 493b2993
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment