aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/mesh_hwmp.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-11-15 09:33:31 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-11-17 15:43:57 -0500
commit88d5346512294fbd02fd982173c64cb9b2f0235c (patch)
treef1656211729338dff8a48146021e4ed6299bc134 /net/mac80211/mesh_hwmp.c
parent5e2e05de55ce1dd05521c419b80241551d36b473 (diff)
mac80211: memory leak in mesh_queue_preq()
We recently introduced a return here, but we need to call kfree first. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh_hwmp.c')
-rw-r--r--net/mac80211/mesh_hwmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c
index a7afb2d32de..8a81591f001 100644
--- a/net/mac80211/mesh_hwmp.c
+++ b/net/mac80211/mesh_hwmp.c
@@ -871,6 +871,7 @@ static void mesh_queue_preq(struct mesh_path *mpath, u8 flags)
if (mpath->flags & MESH_PATH_REQ_QUEUED) {
spin_unlock_bh(&mpath->state_lock);
spin_unlock_bh(&ifmsh->mesh_preq_queue_lock);
+ kfree(preq_node);
return;
}