mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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. Change-Id: Ib6a9426543d8cb87035333d8b664a929de2f42d1 Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
This commit is contained in:
parent
9e5a39a763
commit
a4acb4471a
@ -15147,7 +15147,8 @@ void cfg80211_ft_event(struct net_device *netdev,
|
||||
if (!ft_event->target_ap)
|
||||
return;
|
||||
|
||||
msg = nlmsg_new(100 + ft_event->ric_ies_len, GFP_KERNEL);
|
||||
msg = nlmsg_new(100 + ft_event->ies_len + ft_event->ric_ies_len,
|
||||
GFP_KERNEL);
|
||||
if (!msg)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user