OSDN Git Service

tracing: fix ref count in splice pages
authorSteven Rostedt <srostedt@redhat.com>
Wed, 29 Apr 2009 04:16:21 +0000 (00:16 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 29 Apr 2009 04:16:21 +0000 (00:16 -0400)
commit5beae6efd1004b44c3e257dc96087978e4c763c1
tree8d3e4bb6cc11387197cbd10518201b375cd84fce
parentcd891ae0305601bdb4d2e7e85282961c4ff256cd
tracing: fix ref count in splice pages

The pages allocated for the splice binary buffer did not initialize
the ref count correctly. This caused pages not to be freed and causes
a drastic memory leak.

Thanks to logdev I was able to trace the tracer to find where the leak
was.

[ Impact: stop memory leak when using splice ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c