wifi: iwlwifi: fw: use correct IML/ROM status register
authorJohannes Berg <johannes.berg@intel.com>
Mon, 5 Dec 2022 08:35:48 +0000 (10:35 +0200)
committerGregory Greenman <gregory.greenman@intel.com>
Wed, 7 Dec 2022 15:36:50 +0000 (17:36 +0200)
Different registers should be used, but they code wasn't
adjusted for the 'error' register, only for the 'data1'.
Fix that.

Coverity CID: 1487176
Coverity CID: 1487230

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20221205102808.28de1a5b2493.I356c9404623fd5ef793d47481fe37a95be355c6b@changeid
drivers/net/wireless/intel/iwlwifi/fw/dump.c

index 03b1b24..792f7fe 100644 (file)
@@ -377,7 +377,7 @@ static void iwl_fwrt_dump_iml_error_log(struct iwl_fw_runtime *fwrt)
                return;
        }
 
-       error = iwl_read_umac_prph(trans, UMAG_SB_CPU_2_STATUS);
+       error = iwl_read_umac_prph(trans, error);
 
        IWL_ERR(trans, "IML/ROM dump:\n");