iwlwifi: disable BH before the call to iwl_op_mode_nic_error
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 17 Jun 2012 13:04:25 +0000 (16:04 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jun 2012 08:46:26 +0000 (10:46 +0200)
This is required by the op_mode API.

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

index c6f53af639c6b15971e873534185a4495f72f550..e20880acdd34dbe2cbb62e5201616bccf5e82a15 100644 (file)
@@ -2026,7 +2026,9 @@ static ssize_t iwl_dbgfs_fw_restart_write(struct file *file,
        if (!trans->op_mode)
                return -EAGAIN;
 
+       local_bh_disable();
        iwl_op_mode_nic_error(trans->op_mode);
+       local_bh_enable();
 
        return count;
 }