projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09d1180
)
nl80211: Fix potential memory leak in nl80211_set_wowlan
author
Ola Olsson
<ola1olsson@gmail.com>
Sat, 12 Dec 2015 22:17:17 +0000
(23:17 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 15 Dec 2015 12:10:05 +0000
(13:10 +0100)
Compared to cfg80211_rdev_free_wowlan in core.h,
the error goto label lacks the freeing of nd_config.
Fix that.
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index c71e274c810ac6610df652ec029838000ee7c69d..624174f20b1f8b7e264f1e5e715660fd785c4646 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-9503,6
+9503,7
@@
static int nl80211_set_wowlan(struct sk_buff *skb, struct genl_info *info)
if (new_triggers.tcp && new_triggers.tcp->sock)
sock_release(new_triggers.tcp->sock);
kfree(new_triggers.tcp);
+ kfree(new_triggers.nd_config);
return err;
}
#endif