[PATCH 4/4][trusty] UBUNTU: SAUCE: iwlwifi: mvm: Don't create fw error dump if there's nothing to dump

Seth Forshee seth.forshee at canonical.com
Thu Mar 20 15:02:59 UTC 2014


If we don't have the firmware sram then the dump will not contain
any useful data, so don't bother creating the dump.

Signed-off-by: Seth Forshee <seth.forshee at canonical.com>
---
 drivers/net/wireless/iwlwifi/mvm/ops.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/iwlwifi/mvm/ops.c b/drivers/net/wireless/iwlwifi/mvm/ops.c
index 51459f5..7e2bcaf 100644
--- a/drivers/net/wireless/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/iwlwifi/mvm/ops.c
@@ -774,6 +774,9 @@ bool iwl_mvm_fw_error_dump(struct iwl_mvm *mvm)
 	if (mvm->fw_error_dump)
 		return true;
 
+	if (!mvm->fw_error_sram)
+		return false;
+
 	file_len = mvm->fw_error_sram_len +
 		   sizeof(*dump_file) +
 		   sizeof(*dump_data);
-- 
1.9.0





More information about the kernel-team mailing list