]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: add missing mutex_destroy statements
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 15 Mar 2016 13:36:36 +0000 (15:36 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 30 Mar 2016 13:21:23 +0000 (16:21 +0300)
iwlwifi / iwlmvm didn't destroy their mutexes. Fix that.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
drivers/net/wireless/intel/iwlwifi/pcie/trans.c

index 6153c8e86c53e71e480a9cf91f1b599a99ff4390..d4b71a7d0645281edbbfc661a09830dfbfea7eb6 100644 (file)
@@ -782,6 +782,9 @@ static void iwl_op_mode_mvm_stop(struct iwl_op_mode *op_mode)
 
        iwl_mvm_tof_clean(mvm);
 
+       mutex_destroy(&mvm->mutex);
+       mutex_destroy(&mvm->d0i3_suspend_mutex);
+
        ieee80211_free_hw(mvm->hw);
 }
 
index 28fe22097d52b48e1929a280d5321b4a8de97e6a..0c40209bd718e30852d6bab69611ce70769107ca 100644 (file)
@@ -1695,6 +1695,7 @@ void iwl_trans_pcie_free(struct iwl_trans *trans)
        }
 
        free_percpu(trans_pcie->tso_hdr_page);
+       mutex_destroy(&trans_pcie->mutex);
        iwl_trans_free(trans);
 }