From: Emmanuel Grumbach Date: Thu, 18 Sep 2014 12:44:04 +0000 (+0300) Subject: iwlwifi: pcie: warn if extern fw_debug buffer failed X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=40a76905ad85903dc35ca9967056817e21a6d5d7;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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;