Merge "nl80211: fix nlmsg allocation in cfg80211_ft_event"

This commit is contained in:
Linux Build Service Account 2018-06-15 10:28:13 -07:00 committed by Gerrit - the friendly Code Review server
commit 69f3e88c6c

View file

@ -13807,7 +13807,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;