iwlwifi: mvm: init drv_stats_lock
authorJohannes Berg <johannes.berg@intel.com>
Wed, 26 Feb 2014 10:25:58 +0000 (11:25 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 9 Mar 2014 14:39:07 +0000 (16:39 +0200)
Otherwise lockdep complains about the lock, I'm not sure
why we didn't see this before.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c

index e0ff43ed24829c78024a8b3db0a72a9511f5101b..41c6370346876d39cfb7652bac65e0b5f17d13f4 100644 (file)
@@ -1049,6 +1049,8 @@ int iwl_mvm_dbgfs_register(struct iwl_mvm *mvm, struct dentry *dbgfs_dir)
        struct dentry *bcast_dir __maybe_unused;
        char buf[100];
 
+       spin_lock_init(&mvm->drv_stats_lock);
+
        mvm->debugfs_dir = dbgfs_dir;
 
        MVM_DEBUGFS_ADD_FILE(tx_flush, mvm->debugfs_dir, S_IWUSR);