aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-10-10 15:25:47 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-10 15:25:46 -0700
commitb019d7280938caa1a19c16c1623027006e123c35 (patch)
treee693d479c5c78f9a9fd26b9a2aa50d304d6a3d9b
parentbbc8574458311f70eb6e46d5cf35dc97ea4023bd (diff)
parentb2c498ab10d746617515b768835dc3f0efaa3b17 (diff)
Merge "nl80211: nl80211_update_ft_ies to validate NL80211_ATTR_IE"
-rw-r--r--net/wireless/nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index f00e7d339ff47..e0869504e8170 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -11438,6 +11438,7 @@ static int nl80211_update_ft_ies(struct sk_buff *skb, struct genl_info *info)
return -EOPNOTSUPP;
if (!info->attrs[NL80211_ATTR_MDID] ||
+ !info->attrs[NL80211_ATTR_IE] ||
!is_valid_ie_attr(info->attrs[NL80211_ATTR_IE]))
return -EINVAL;