projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
128b24b
)
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
Greg Kroah-Hartman
<gregkh@suse.de>
Sun, 16 Aug 2009 21:19:07 +0000
(14:19 -0700)
commit
bd3f02212d6a457267e0c9c02c426151c436d9d4
upstream.
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>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/trace/ring_buffer.c
patch
|
blob
|
history
diff --git
a/kernel/trace/ring_buffer.c
b/kernel/trace/ring_buffer.c
index 960cbf44c844a17dd156b25927d6e98c89840600..4565c62114344fca2e7afb00baf1cc932914f041 100644
(file)
--- a/
kernel/trace/ring_buffer.c
+++ b/
kernel/trace/ring_buffer.c
@@
-695,6
+695,7
@@
ring_buffer_free(struct ring_buffer *buffer)
put_online_cpus();
+ kfree(buffer->buffers);
free_cpumask_var(buffer->cpumask);
kfree(buffer);