iwlwifi: pcie: warn if extern fw_debug buffer failed
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 18 Sep 2014 12:44:04 +0000 (15:44 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Oct 2014 10:52:23 +0000 (12:52 +0200)
Otherwise we have no way to know that the buffer hasn't been
allocated.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c

index 3781b029e54a328f6304bfb6cf61d52c053cbce7..5c9064fdbfda0d0ef57cbeb61b8754c03e323b09 100644 (file)
@@ -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;