summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/utils.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2013-08-21 14:27:40 +0300
committerJohannes Berg <johannes.berg@intel.com>2013-10-02 18:00:38 +0200
commit3394817f833f13958320ae6e0dccf347c1ce5200 (patch)
tree1c3f27bae0a60518c16cd5e74730fcac21e5b560 /drivers/net/wireless/iwlwifi/mvm/utils.c
parent4e82dd3a132cd71a7164d01095562aa564e0d739 (diff)
downloadblackbird-op-linux-3394817f833f13958320ae6e0dccf347c1ce5200.tar.gz
blackbird-op-linux-3394817f833f13958320ae6e0dccf347c1ce5200.zip
iwlwifi: mvm: don't sleep while allocating in atomic context
We want to dump the SRAM when we have an error interrupt from the device. This happens in non-sleepable context, hence the change. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/utils.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/utils.c b/drivers/net/wireless/iwlwifi/mvm/utils.c
index a9c357491434..ed69e9b78e82 100644
--- a/drivers/net/wireless/iwlwifi/mvm/utils.c
+++ b/drivers/net/wireless/iwlwifi/mvm/utils.c
@@ -466,7 +466,7 @@ void iwl_mvm_dump_sram(struct iwl_mvm *mvm)
ofs = img->sec[IWL_UCODE_SECTION_DATA].offset;
len = img->sec[IWL_UCODE_SECTION_DATA].len;
- buf = kzalloc(len, GFP_KERNEL);
+ buf = kzalloc(len, GFP_ATOMIC);
if (!buf)
return;
OpenPOWER on IntegriCloud