aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-01-05 16:16:31 +0100
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2016-01-07 19:01:31 +0200
commitbe720d3fc049e14323f2ba637c053fe39d3e0157 (patch)
tree8fb875edfad2e37866272eec1359f37ad8c71e18 /drivers/net/wireless/intel/iwlwifi/mvm/tt.c
parentiwlwifi: mvm: initialize gtkdata->mvm correctly (diff)
downloadlinux-dev-be720d3fc049e14323f2ba637c053fe39d3e0157.tar.xz
linux-dev-be720d3fc049e14323f2ba637c053fe39d3e0157.zip
iwlwifi: mvm: check minimum temperature notification length
This notification will be extended with extra data, so just check that it has a minimum length, not the exact length; we might later add handling for the extra fields added and have more code to handle both versions. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/tt.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/tt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
index 473975cb34af..fb76004eede4 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
@@ -120,7 +120,7 @@ static int iwl_mvm_temp_notif_parse(struct iwl_mvm *mvm,
int len = iwl_rx_packet_payload_len(pkt);
int temp;
- if (WARN_ON_ONCE(len != sizeof(*notif))) {
+ if (WARN_ON_ONCE(len < sizeof(*notif))) {
IWL_ERR(mvm, "Invalid DTS_MEASUREMENT_NOTIFICATION\n");
return -EINVAL;
}