From: Emmanuel Grumbach Date: Sun, 17 Jun 2012 13:04:25 +0000 (+0300) Subject: iwlwifi: disable BH before the call to iwl_op_mode_nic_error X-Git-Tag: firefly_0821_release~3680^2~2381^2~57^2~76^2~23 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=24172f39b02e5fcd35a4f721bde5bc9b61534736;p=firefly-linux-kernel-4.4.55.git iwlwifi: disable BH before the call to iwl_op_mode_nic_error This is required by the op_mode API. Signed-off-by: Emmanuel Grumbach Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index c6f53af639c6..e20880acdd34 100644 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c @@ -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; }