diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2009-08-08 17:49:53 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-08 17:56:13 +0200 |
commit | 26528e773ecc74fb1b61b7275f86f761cbb340ec (patch) | |
tree | e3892e1c58783cc022517dab31b1e18179cb930b /scripts | |
parent | tracing/filters: Don't use pred on alloc failure (diff) | |
download | linux-26528e773ecc74fb1b61b7275f86f761cbb340ec.tar.xz linux-26528e773ecc74fb1b61b7275f86f761cbb340ec.zip |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions