diff options
author | Li Zefan <[email protected]> | 2009-09-01 13:31:38 +0800 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2009-09-04 23:22:33 +0200 |
commit | c58b43218c1a04a0bcf338ea47406c759ac28e11 (patch) | |
tree | e13e33f195a13b4c959494ee7d059b87c2167be3 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | 8e254c1d183f0225ad21f9049641529e56cce4da (diff) |
tracing/filters: Defer pred allocation, fix memory leak
The predicates of an event and their filter structure are allocated
when we create an event filter for the first time.
These objects must be created once but each time we come with a new
filter, we overwrite such pre-existing allocation, if any.
Thus, this patch checks if the filter has already been allocated
before going ahead.
Spotted-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Li Zefan <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions