diff options
| author | Dan Carpenter <[email protected]> | 2017-05-22 09:04:18 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-05-23 07:50:05 +0000 |
| commit | 36cc2b9222b5106de34085c4dd8635ac67ef5cba (patch) | |
| tree | 6f6d4e2b9be6597b30bac40156ff01954fc904ca /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | perf/core: Remove some dead code (diff) | |
| download | kernel-36cc2b9222b5106de34085c4dd8635ac67ef5cba.tar.gz kernel-36cc2b9222b5106de34085c4dd8635ac67ef5cba.zip | |
perf/core: Fix error handling in perf_event_alloc()
We don't set an error code here which means that perf_event_alloc()
returns ERR_PTR(0) (in other words NULL). The callers are not expecting
that and would Oops.
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Fixes: 375637bc5249 ("perf/core: Introduce address range filtering")
Link: http://lkml.kernel.org/r/20170522090418.hvs6icgpdo53wkn5@mwanda
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions
