OSDN Git Service

nl80211: fix nlmsg allocation in cfg80211_ft_event
authorZhu Jianmin <jianminz@codeaurora.org>
Tue, 12 Jun 2018 10:18:25 +0000 (18:18 +0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Fri, 15 Jun 2018 11:37:17 +0000 (04:37 -0700)
commitdf55603b24bc48fd765332d71a9ca1f82c1e8e39
tree2d52d62c06cfcaf0c7ae51b04e5a4c67e3441736
parent37805d9fefe0318c7cd57b26e9d7659e87aef69a
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>
Git-commit: 1039d08100e58f016a814347baadb77bf8dd21ab
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I224ac6113e4b15958f3b155982ff5cf84ff9ed74
CRs-Fixed: 2207276
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Zhu Jianmin <jianminz@codeaurora.org>
net/wireless/nl80211.c