pmu: define event validation in architecture dependent code.
Change-Id: Ia053af146ba3c89810892271cae93def6d9fd7c8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user