Skip to content

Commit

Permalink
iwlwifi: disable BH before the call to iwl_op_mode_nic_error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Jun 18, 2012
1 parent 901787c commit 24172f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/iwlwifi/pcie/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 24172f3

Please sign in to comment.