perf parse-events: Avoid an uninitialized read when using fake PMUs

With a fake_pmu the pmu_info isn't populated by perf_pmu__check_alias.
In this case, don't try to copy the uninitialized values to the evsel.

Signed-off-by: Ian Rogers <>
Acked-by: Jiri Olsa <>
Cc: Adrian Hunter <>
Cc: Alexander Shishkin <>
Cc: Andi Kleen <>
Cc: Jin Yao <>
Cc: Kajol Jain <>
Cc: Kan Liang <>
Cc: Leo Yan <>
Cc: Mark Rutland <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Stephane Eranian <>
Signed-off-by: Arnaldo Carvalho de Melo <>
1 file changed