mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
perf/core: Fix address filter parser for multiple filters
[ Upstream commitd680ff24e9] Reset appropriate variables in the parser loop between parsing separate filters, so that they do not interfere with parsing the next filter. Fixes:375637bc52("perf/core: Introduce address range filtering") Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220131072453.2839535-4-adrian.hunter@intel.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a9faa5beda
commit
13c8e37e1f
@@ -10265,8 +10265,11 @@ perf_event_parse_addr_filter(struct perf_event *event, char *fstr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ready to consume more filters */
|
/* ready to consume more filters */
|
||||||
|
kfree(filename);
|
||||||
|
filename = NULL;
|
||||||
state = IF_STATE_ACTION;
|
state = IF_STATE_ACTION;
|
||||||
filter = NULL;
|
filter = NULL;
|
||||||
|
kernel = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user