tracing: instance_rmdir() leaks ftrace_event_file->filter
authorOleg Nesterov <[email protected]>
Fri, 11 Jul 2014 19:06:38 +0000 (21:06 +0200)
committerSteven Rostedt <[email protected]>
Mon, 14 Jul 2014 18:41:13 +0000 (14:41 -0400)
commit2448e3493cb3874baa90725c87869455ebf11cd2
treedfbcb7c632b741b5ca5b02b459ad4aacff14bb89
parent1795cd9b3a91d4b5473c97f491d63892442212ab
tracing: instance_rmdir() leaks ftrace_event_file->filter

instance_rmdir() path destroys the event files but forgets to free
file->filter. Change remove_event_file_dir() to free_event_filter().

Link: http://lkml.kernel.org/p/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: "zhangwei(Jovi)" <[email protected]>
Cc: [email protected] # 3.11+
Fixes: f6a84bdc75b5 "tracing: Introduce remove_event_file_dir()"
Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
kernel/trace/trace_events.c