pmu: define event validation in architecture dependent code.

Change-Id: Ia053af146ba3c89810892271cae93def6d9fd7c8
This commit is contained in:
TOIDA,Suguru
2019-07-09 13:38:26 +09:00
parent b6285c9aa9
commit 9c78d4d249
3 changed files with 3 additions and 2 deletions

View File

@@ -4103,7 +4103,7 @@ static int mc_perf_event_alloc(struct mc_perf_event **out,
goto out;
}
if (val == 0) {
if (!ihk_mc_validate_event(val)) {
ret = -ENOENT;
goto out;
}