diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-10-04 14:42:19 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-10-07 21:34:52 +0200 |
commit | 1399c59fa92984836db90538cf92397fe7caaa57 (patch) | |
tree | 894fc0bc397e8ad9c0107e895579c18188e66296 /net/sched/sch_sfb.c | |
parent | 4ac2813cc867ae563a1ba5a9414bfb554e5796fa (diff) | |
download | linux-1399c59fa92984836db90538cf92397fe7caaa57.tar.gz linux-1399c59fa92984836db90538cf92397fe7caaa57.tar.bz2 linux-1399c59fa92984836db90538cf92397fe7caaa57.zip |
nl80211: fix memory leak in nl80211_get_ftm_responder_stats
In nl80211_get_ftm_responder_stats, a new skb is created via nlmsg_new
named msg. If nl80211hdr_put() fails, then msg should be released. The
return statement should be replace by goto to error handling code.
Fixes: 81e54d08d9d8 ("cfg80211: support FTM responder configuration/statistics")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Link: https://lore.kernel.org/r/20191004194220.19412-1-navid.emamdoost@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/sched/sch_sfb.c')
0 files changed, 0 insertions, 0 deletions