iwlwifi: dbg: treat dbgc allocation failure when tlv is missing
authorRotem Saado <rotem.saado@intel.com>
Sun, 17 Oct 2021 13:59:48 +0000 (16:59 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Oct 2021 07:49:04 +0000 (10:49 +0300)
commitd41cdbcd71185884c3bacc97c42dabd82a058d7e
tree4d7b5eb2f7906c15bd7e46419a31e68e6d947cad
parent33c99471b0863bbbf0912ad8a78aab3a7e52cfd6
iwlwifi: dbg: treat dbgc allocation failure when tlv is missing

in case allocation tlv is missing for specific dbgc id,
treat it as allocation failure.
with this behavior we removing later the unsupported regions
relating to the failed dbgc allocation.
this saves operational driver memory and run time at collecting
debug data.

Signed-off-by: Rotem Saado <rotem.saado@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017165728.4cd241abf1de.I8f6cf00a7266675dfebdc01a73c1ac6e001855b9@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c