Commit 88d53465 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

mac80211: memory leak in mesh_queue_preq()

We recently introduced a return here, but we need to call kfree
first.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5e2e05de
...@@ -871,6 +871,7 @@ static void mesh_queue_preq(struct mesh_path *mpath, u8 flags) ...@@ -871,6 +871,7 @@ static void mesh_queue_preq(struct mesh_path *mpath, u8 flags)
if (mpath->flags & MESH_PATH_REQ_QUEUED) { if (mpath->flags & MESH_PATH_REQ_QUEUED) {
spin_unlock_bh(&mpath->state_lock); spin_unlock_bh(&mpath->state_lock);
spin_unlock_bh(&ifmsh->mesh_preq_queue_lock); spin_unlock_bh(&ifmsh->mesh_preq_queue_lock);
kfree(preq_node);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment