iwlwifi: dbg_ini: verify debug TLVs at allocation phase
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 30 Jun 2019 07:23:26 +0000 (10:23 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Sep 2019 12:31:21 +0000 (15:31 +0300)
commit341bd290b9a25a59e0a20873de0dc14fa12c4b67
tree713467796a3ec2a75ed20c752d041871457a4327
parenta1af4c486ae7901480afc0f140f4ce91f0c389cd
iwlwifi: dbg_ini: verify debug TLVs at allocation phase

Reimplement debug TLV allocation flow. The driver will check the
validity of the debug TLVs prior allocating space for them.
Any malformed or unsupported TLV will be skipped.
The TLV specific checks will be added in later patches.

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
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.h
drivers/net/wireless/intel/iwlwifi/iwl-drv.c
drivers/net/wireless/intel/iwlwifi/iwl-trans.h