Skip to content

Commit 9737451

Browse files
gomordlucacoelho
authored andcommitted
iwlwifi: dbg: check trigger data before access
Without trigger data set, no point in any collection. so check that we have the info for collecting the data. Signed-off-by: Mordechay Goodstein <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20220304131517.5fb34fb1f0eb.I4d7f2a4d162e80474540c5caf1194ed7d32977bc@changeid Signed-off-by: Luca Coelho <[email protected]>
1 parent f0c1633 commit 9737451

File tree

1 file changed

+5
-0
lines changed
  • drivers/net/wireless/intel/iwlwifi/fw

1 file changed

+5
-0
lines changed

drivers/net/wireless/intel/iwlwifi/fw/dbg.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2905,6 +2905,11 @@ static void iwl_fw_dbg_collect_sync(struct iwl_fw_runtime *fwrt, u8 wk_idx)
29052905
if (!test_bit(wk_idx, &fwrt->dump.active_wks))
29062906
return;
29072907

2908+
if (!dump_data->trig) {
2909+
IWL_ERR(fwrt, "dump trigger data is not set\n");
2910+
goto out;
2911+
}
2912+
29082913
if (!test_bit(STATUS_DEVICE_ENABLED, &fwrt->trans->status)) {
29092914
IWL_ERR(fwrt, "Device is not enabled - cannot dump error\n");
29102915
goto out;

0 commit comments

Comments
 (0)