]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ice: ice_init_pf: destroy mutexes and xarrays on memory alloc failure
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Fri, 12 Sep 2025 13:06:22 +0000 (15:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:37 +0000 (14:02 +0100)
commit46d0b034b15d4b75c346293560468edf8a28796e
tree6cc2c2ef2fae768c4c13b0e1793a8a4c427aff86
parent0380ea173bf93f0ad33afc3f992ca4e8091cf9fd
ice: ice_init_pf: destroy mutexes and xarrays on memory alloc failure

[ Upstream commit 71430451f81bd6550e46d89b69103a111fc42982 ]

Unroll actions of ice_init_pf() when it fails.
ice_deinit_pf() happens to be perfect to call here.

Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Stable-dep-of: 1390b8b3d2be ("ice: remove duplicate call to ice_deinit_hw() on error paths")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_main.c