summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorSrinivas Dasari <dasaris@codeaurora.org>2018-04-20 09:11:14 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-04-20 10:58:03 +0300
commit2f0605a697f4b9f5b1c1571c7ec6a16df4dc2616 (patch)
tree3f7a07d42c794e063166146313499a190abff938 /net/wireless
parent83826469e36b9c8219f88c16713a755b2cea6ff5 (diff)
downloadlinux-2f0605a697f4b9f5b1c1571c7ec6a16df4dc2616.tar.xz
nl80211: Free connkeys on external authentication failure
The failure scenario while processing NL80211_ATTR_EXTERNAL_AUTH_SUPPORT does not free the connkeys. This commit addresses the same. Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index ff28f8feeb09..a052693c2e85 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -9214,6 +9214,7 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info)
if (nla_get_flag(info->attrs[NL80211_ATTR_EXTERNAL_AUTH_SUPPORT])) {
if (!info->attrs[NL80211_ATTR_SOCKET_OWNER]) {
+ kzfree(connkeys);
GENL_SET_ERR_MSG(info,
"external auth requires connection ownership");
return -EINVAL;