diff options
author | Shahar S Matityahu <shahar.s.matityahu@intel.com> | 2019-02-17 15:46:22 +0300 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2019-04-03 11:20:00 +0300 |
commit | d63916aeba5768a9aedcd3bfddf32ffff4dae076 (patch) | |
tree | 2613a3f122bbe227c2e591f5e72a74003524745c /drivers/net/wireless/intel | |
parent | f0e1e1c20d5fc9ff6d94193100ab90d5945a6d08 (diff) | |
download | linux-d63916aeba5768a9aedcd3bfddf32ffff4dae076.tar.xz |
iwlwifi: dbg_ini: fix the dram monitor header size
Add sizeof(struct iwl_fw_ini_error_dump_range) to the header of the dram
monitor.
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index 1b6a850940cf..6f681060245e 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -1528,7 +1528,8 @@ static u32 iwl_dump_ini_paging_get_size(struct iwl_fw_runtime *fwrt, static u32 iwl_dump_ini_mon_dram_get_size(struct iwl_fw_runtime *fwrt, struct iwl_fw_ini_region_cfg *reg) { - u32 size = sizeof(struct iwl_fw_ini_monitor_dram_dump); + u32 size = sizeof(struct iwl_fw_ini_monitor_dram_dump) + + sizeof(struct iwl_fw_ini_error_dump_range); if (fwrt->trans->num_blocks) size += fwrt->trans->fw_mon[0].size; |