diff options
author | Ravi Bangoria <[email protected]> | 2022-11-18 10:45:39 +0530 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-12-27 12:44:00 +0100 |
commit | e2d371484653ac83b970d3ebcf343383f39f8b6b (patch) | |
tree | 41b65d9809c9f301b249cd163e9f7f0e85dfd250 /tools/lib/api | |
parent | 1b929c02afd37871d5afb9d498426f83432e71c2 (diff) |
perf core: Return error pointer if inherit_event() fails to find pmu_ctx
inherit_event() returns NULL only when it finds orphaned events
otherwise it returns either valid child_event pointer or an error
pointer. Follow the same when it fails to find pmu_ctx.
Fixes: bd2756811766 ("perf: Rewrite core context handling")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Ravi Bangoria <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/lib/api')
0 files changed, 0 insertions, 0 deletions