]> git.ipfire.org Git - thirdparty/linux.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)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 24 Oct 2025 20:24:00 +0000 (13:24 -0700)
commit71430451f81bd6550e46d89b69103a111fc42982
treeb0a2c23b4a65ec90cc04ae3497e5ed5dd7a4c77e
parent2fe18288fce6b421f1dc585bcb9dd3afa32d3ad9
ice: ice_init_pf: destroy mutexes and xarrays on memory alloc failure

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>
drivers/net/ethernet/intel/ice/ice_main.c