]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: dbg_ini: check debug TLV type explicitly
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Wed, 20 Mar 2019 15:41:16 +0000 (17:41 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 18 Apr 2019 11:07:39 +0000 (14:07 +0300)
commit8d460fb585c6a698742e7e01fea2b2a840eaf932
treec1802c3184a1ed608fc7330742a852deef6af6e8
parentb2ac9a31c8efaecebe5f874b9cb902eb63dd9a6a
iwlwifi: dbg_ini: check debug TLV type explicitly

In ini debug TLVs bit 24 is set. The driver relies on it in the memory
allocation for the debug configuration. This implementation is
problematic in case of a new debug TLV that is not supported yet is added
and uses bit 24. In such a scenario the driver allocate space without
using it which causes errors in the apply point enabling flow.

Solve it by explicitly checking if a given TLV is part of the list of
the supported ini debug TLVs.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: f4d5d8784a9a ("iwlwifi: trans: parse and store debug ini TLVs")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/file.h
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c