Message ID | 20220131072453.2839535-4-adrian.hunter@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | perf/core: Address filter fixes / changes | expand |
diff --git a/kernel/events/core.c b/kernel/events/core.c index fc18664f49b0..af043a1a06ca 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -10497,8 +10497,11 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr, } /* ready to consume more filters */ + kfree(filename); + filename = NULL; state = IF_STATE_ACTION; filter = NULL; + kernel = 0; } }
Reset appropriate variables in the parser loop between parsing separate filters, so that they do not interfere with parsing the next filter. Fixes: 375637bc524952 ("perf/core: Introduce address range filtering") Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> --- kernel/events/core.c | 3 +++ 1 file changed, 3 insertions(+)