mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
nl80211: Fix potential memory leak in nl80211_set_wowlan
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>
This commit is contained in:
parent
09d118008f
commit
e5dbe0701a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue