]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: avoid allocating memory for region with disabled domain
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 8 Apr 2019 13:59:53 +0000 (16:59 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 29 Apr 2019 15:42:47 +0000 (18:42 +0300)
commit0aade8f4846a6fdacbbd6bbe092d0edb2dfa0d0f
tree716e05c9ad7d0cf06cb328372891dfe3d746a610
parent391481ad26904e055298eb4e41fbdba7d20e6526
iwlwifi: avoid allocating memory for region with disabled domain

In iwl_fw_ini_get_trigger_len the driver allocates space for memory
regions regardless of their domain and in iwl_fw_ini_dump_trigger the
driver aborts trigger collection of disabled domain. This diff causes
unneeded memory allocation and traling zeros in the dump file.

Solve this behavior by enforcing domain checking in
iwl_fw_ini_get_trigger_len

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c