projects
/
GitHub
/
LineageOS
/
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:
5e2e05d
)
mac80211: memory leak in mesh_queue_preq()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 15 Nov 2011 06:33:31 +0000
(09:33 +0300)
committer
John W. Linville
<linville@tuxdriver.com>
Thu, 17 Nov 2011 20:43:57 +0000
(15:43 -0500)
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>
net/mac80211/mesh_hwmp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/mesh_hwmp.c
b/net/mac80211/mesh_hwmp.c
index a7afb2d32def7bfe308566b0147328827eb80067..8a81591f001345a92022615f279f1ad07fe2b538 100644
(file)
--- 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;
}