iwlwifi: dbg-tlv: fix old length in is_trig_data_contained()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Dec 2020 21:16:37 +0000 (23:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:46 +0000 (11:53 +0100)
commit31269e6ac076d56d5aa781470d02208ea5487dc2
treeff57e14f2a3256bde9884e92120cef04a2d8a1e1
parent1b4f4a160b0cd5b6c35fd26c1e969c5326a2d86c
iwlwifi: dbg-tlv: fix old length in is_trig_data_contained()

[ Upstream commit 58a1c9f9a9b6b9092ae10b84f6b571a06596e296 ]

There's a bug in the lengths - the 'old length' needs to be calculated
using the 'old' pointer, of course, likely a copy/paste mistake. Fix
this.

Reported-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: cf29c5b66b9f ("iwlwifi: dbg_ini: implement time point handling")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20201209231352.c0105ddffa74.I1ddb243053ff763c91b663748b6a593ecc3b5634@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c