diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-09-18 15:44:04 +0300 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-10-29 12:52:23 +0200 |
commit | 40a76905ad85903dc35ca9967056817e21a6d5d7 (patch) | |
tree | 86c9d7aee302f8b2be889340ed80430d27dc0499 /drivers/net/wireless/iwlwifi/pcie/trans.c | |
parent | 77d96730db597ec82d78f3063daab2f17d14eff4 (diff) | |
download | blackbird-obmc-linux-40a76905ad85903dc35ca9967056817e21a6d5d7.tar.gz blackbird-obmc-linux-40a76905ad85903dc35ca9967056817e21a6d5d7.zip |
iwlwifi: pcie: warn if extern fw_debug buffer failed
Otherwise we have no way to know that the buffer hasn't been
allocated.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/pcie/trans.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/pcie/trans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index 3781b029e54a..5c9064fdbfda 100644 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c @@ -133,7 +133,7 @@ static void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans) break; } - if (!page) + if (WARN_ON_ONCE(!page)) return; trans_pcie->fw_mon_page = page; |