projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dbdee2
)
ring-buffer: Fix memleak in ring_buffer_free()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Fri, 7 Aug 2009 10:49:29 +0000
(12:49 +0200)
committer
Steven Rostedt
<rostedt@goodmis.org>
Fri, 7 Aug 2009 16:46:39 +0000
(12:46 -0400)
I noticed oprofile memleaked in linux-2.6 current tree,
and tracked this ring-buffer leak.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
LKML-Reference: <
4A7C06B9
.
2090302
@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c
patch
|
blob
|
history
diff --git
a/kernel/trace/ring_buffer.c
b/kernel/trace/ring_buffer.c
index d4d3580a894a7f39bda320841d6baf70487eec91..a330513d96ce321ae0ea50e9fa648d6e9cbfc7e5 100644
(file)
--- a/
kernel/trace/ring_buffer.c
+++ b/
kernel/trace/ring_buffer.c
@@
-735,6
+735,7
@@
ring_buffer_free(struct ring_buffer *buffer)
put_online_cpus();
+ kfree(buffer->buffers);
free_cpumask_var(buffer->cpumask);
kfree(buffer);