wifi: iwlwifi: Fix the duplicate dump name
authorMukesh Sisodiya <mukesh.sisodiya@intel.com>
Thu, 13 Apr 2023 18:40:31 +0000 (21:40 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 11:14:50 +0000 (13:14 +0200)
Driver is using the dump name generated first time in all
generated dump in case of NMI.
The validity of dump name should be with each dump created
and need to reset after each use.

Fixes: 834f920ef34b ("wifi: iwlwifi: yoyo: Add driver defined dump file name")
Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413213309.6c987f820557.I924f2eae1eef2fe82c7a23be566551653d46f729@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c

index ca97f2fcb69324c0094ba75a7a69dafd1a493c62..51cdbc13fbcdbd286b267f01b42f679c3a8a224d 100644 (file)
@@ -2345,6 +2345,8 @@ static u32 iwl_dump_ini_file_name_info(struct iwl_fw_runtime *fwrt,
        /* add the dump file name extension tlv to the list */
        list_add_tail(&entry->list, list);
 
+       fwrt->trans->dbg.dump_file_name_ext_valid = false;
+
        return entry->size;
 }