diff options
author | 2020-11-16 09:35:40 -0500 | |
---|---|---|
committer | 2020-11-16 16:32:18 +0000 | |
commit | 19384452052a1e0525e663bfbdd62ac1399bb647 (patch) | |
tree | 8d1b51f4b1ef36d504b60025d001b494732e7758 /drivers/gpu/drm/i915/i915_request.c | |
parent | drm/i915/selftests: Fix wrong return value of perf_series_engines() (diff) | |
download | wireguard-linux-19384452052a1e0525e663bfbdd62ac1399bb647.tar.xz wireguard-linux-19384452052a1e0525e663bfbdd62ac1399bb647.zip |
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 <hulkci@huawei.com>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201116143540.3648870-1-zhangxiaoxu5@huawei.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
0 files changed, 0 insertions, 0 deletions