]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix nlmsg allocation in cfg80211_ft_event
authorDedy Lansky <dlansky@codeaurora.org>
Thu, 17 May 2018 13:25:03 +0000 (16:25 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 May 2018 08:01:58 +0000 (10:01 +0200)
commit2fd0835d20c778e8505d66966431ebe6cd385575
tree83955de339d22a11f32e7ad2008d0390ec69409a
parentc1a6410be249ad52e8bcd1fbf51ba7e1ac0faa14
nl80211: fix nlmsg allocation in cfg80211_ft_event

Allocation size of nlmsg in cfg80211_ft_event is based on ric_ies_len
and doesn't take into account ies_len. This leads to
NL80211_CMD_FT_EVENT message construction failure in case ft_event
contains large enough ies buffer.
Add ies_len to the nlmsg allocation size.

Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c