]> git.ipfire.org Git - thirdparty/iw.git/commit
wowlan: Use MAX_NL80211_ATTR instead of NUM in nla_parse
authorDavid Spinadel <david.spinadel@intel.com>
Mon, 2 Jul 2018 15:27:39 +0000 (18:27 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 11 Oct 2018 10:31:14 +0000 (12:31 +0200)
commitb7e8163aa154f102ee1a9ac55a002b003da5e26d
treea89ce49394196dcfa7254bbed9880b1375bf2f35
parent0e39f109c4b8155697a12ef090b59cdb304c8c44
wowlan: Use MAX_NL80211_ATTR instead of NUM in nla_parse

nla_parse expects max type and not the num of the attributes.
The previous code could cause stack smashing.

While at that use nla_parse_nested instead of nla_parse.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
event.c
wowlan.c