diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2022-11-14 12:18:33 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-11-16 00:30:11 +0300 |
commit | c55bfbb3ebce4e0956972f02b82673950ad1a2d2 (patch) | |
tree | abcf71fea4c1f6ab7fe5c3063edd5493a49b1ecf /tools/perf/scripts/python | |
parent | 3ce1cb7eee70335b6d4f50fadec264473e9566c3 (diff) | |
download | linux-c55bfbb3ebce4e0956972f02b82673950ad1a2d2.tar.xz |
perf: Fix IS_ERR() vs NULL check in inherit_event()
The find_get_pmu_context() returns an ERR_PTR() on failure, we should use
IS_ERR() to check the return value.
Fixes: bd2756811766 ("perf: Rewrite core context handling")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221114091833.1492575-1-cuigaosheng1@huawei.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions