Message ID | 1527585581-23277-1-git-send-email-dasaris@codeaurora.org (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Johannes Berg |
Headers | show |
On Tue, 2018-05-29 at 14:49 +0530, Srinivas Dasari wrote: > Length of the ies is not considered while allocating nl > message for ft_event, though they are filled. > Hence, consider the length also for nl_msg. THis was already fixed by nl80211: fix nlmsg allocation in cfg80211_ft_event johannes
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index bc40a78..8ad0bc0 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -15817,7 +15817,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->ric_ies_len + ft_event->ies_len, + GFP_KERNEL); if (!msg) return;
Length of the ies is not considered while allocating nl message for ft_event, though they are filled. Hence, consider the length also for nl_msg. Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org> --- net/wireless/nl80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)