Skip to content

Commit 1b4ae7d

Browse files
msudheer337anguy11
authored andcommitted
ice: destroy flow director filter mutex after releasing VSIs
Currently fdir_fltr_lock is accessed in ice_vsi_release_all() function after it is destroyed. Instead destroy mutex after ice_vsi_release_all. Fixes: 4031979 ("ice: Add flow director support for channel mode") Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@intel.com> Tested-by: Bharathi Sreenivas <bharathi.sreenivas@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent f153546 commit 1b4ae7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4880,14 +4880,14 @@ static void ice_remove(struct pci_dev *pdev)
48804880
ice_devlink_unregister_params(pf);
48814881
set_bit(ICE_DOWN, pf->state);
48824882

4883-
mutex_destroy(&(&pf->hw)->fdir_fltr_lock);
48844883
ice_deinit_lag(pf);
48854884
if (test_bit(ICE_FLAG_PTP_SUPPORTED, pf->flags))
48864885
ice_ptp_release(pf);
48874886
if (!ice_is_safe_mode(pf))
48884887
ice_remove_arfs(pf);
48894888
ice_setup_mc_magic_wake(pf);
48904889
ice_vsi_release_all(pf);
4890+
mutex_destroy(&(&pf->hw)->fdir_fltr_lock);
48914891
ice_set_wake(pf);
48924892
ice_free_irq_msix_misc(pf);
48934893
ice_for_each_vsi(pf, i) {

0 commit comments

Comments
 (0)