diff options
| author | Tom Zanussi <[email protected]> | 2009-08-08 15:49:53 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-08-08 15:56:13 +0000 |
| commit | 26528e773ecc74fb1b61b7275f86f761cbb340ec (patch) | |
| tree | e3892e1c58783cc022517dab31b1e18179cb930b /lib/flex_array.c | |
| parent | tracing/filters: Don't use pred on alloc failure (diff) | |
| download | kernel-26528e773ecc74fb1b61b7275f86f761cbb340ec.tar.gz kernel-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 <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Li Zefan <[email protected]>
LKML-Reference: <1249746593.6453.32.camel@tropicana>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions
