diff options
author | Johannes Berg <johannes.berg@intel.com> | 2019-02-07 23:39:19 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-02-08 13:51:50 +0100 |
commit | 9f308616b6176b6dc470e6eb3569a09b100a823a (patch) | |
tree | 58e9c9b69fed05c19470df6fc362678c413fc04a /init/do_mounts.c | |
parent | 49a68e0d88890060a2b9b6c6ad1ec53eb50abccf (diff) |
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 'init/do_mounts.c')
0 files changed, 0 insertions, 0 deletions