tracing/filters: Always free pred on filter_add_subsystem_pred() failure
authorTom Zanussi <tzanussi@gmail.com>
Sat, 8 Aug 2009 15:49:53 +0000 (10:49 -0500)
committerIngo Molnar <mingo@elte.hu>
Sat, 8 Aug 2009 15:56:13 +0000 (17:56 +0200)
commit26528e773ecc74fb1b61b7275f86f761cbb340ec
treee3892e1c58783cc022517dab31b1e18179cb930b
parent96b2de313b1e0e02aea80ee47df6a2b5cbdf8e13
tracing/filters: Always free pred on filter_add_subsystem_pred() failure

If filter_add_subsystem_pred() fails due to ENOSPC or ENOMEM,
the pred doesn't get freed, while as a side effect it does for
other errors. Make it so the caller always frees the pred for
any error.

Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <1249746593.6453.32.camel@tropicana>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_events_filter.c