[PATCH AUTOSEL for 4.9 093/281] perf/core: Fix error handling in perf_event_alloc()