diff options
| author | Zhang Xiaoxu <[email protected]> | 2020-11-16 09:35:40 -0500 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2020-11-16 18:06:28 -0500 |
| commit | b5462cc377748181af2b05729c69f5faecec3717 (patch) | |
| tree | 14d9e552b27bdee4ca9fba203d544ee31e4a9df4 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
| parent | 2106edbdfd15e37afa6c5225421b8036bf0e38ec (diff) | |
drm/i915/selftests: Fix wrong return value of perf_request_latency()
If intel context create failed, the perf_request_latency() will return 0
rather than error, because we doesn't initialize the return value.
Fixes: 25c26f18ea79 ("drm/i915/selftests: Measure dispatch latency")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhang Xiaoxu <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 19384452052a1e0525e663bfbdd62ac1399bb647)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions