aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-02-07 23:39:19 +0100
committerJohannes Berg <johannes.berg@intel.com>2019-02-08 13:51:50 +0100
commit9f308616b6176b6dc470e6eb3569a09b100a823a (patch)
tree58e9c9b69fed05c19470df6fc362678c413fc04a /net/mac80211
parentcfg80211: add various struct element finding helpers (diff)
downloadlinux-dev-9f308616b6176b6dc470e6eb3569a09b100a823a.tar.xz
linux-dev-9f308616b6176b6dc470e6eb3569a09b100a823a.zip
nl80211: use for_each_element() in validate_ie_attr()
This makes for much simpler code, simply walk through all the elements and check that the last one found ends with the end of the data. This works because if any element is malformed the walk is aborted, we end up with a mismatch. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions