linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nl80211: Include ies_len for nlmsg from ft_event
@ 2018-05-29  9:19 Srinivas Dasari
  2018-05-29  9:31 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Dasari @ 2018-05-29  9:19 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Srinivas Dasari

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(-)

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;
 
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-29  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-29  9:19 [PATCH] nl80211: Include ies_len for nlmsg from ft_event Srinivas Dasari
2018-05-29  9:31 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).