Skip to content
Commit 8f4caef8 authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Tvrtko Ursulin
Browse files

drm/i915/selftests: Fix return value check in live_breadcrumbs_smoketest()

In case of error, the function live_context() returns ERR_PTR() and never
returns NULL. The NULL test in the return value check should be replaced
with IS_ERR().

Fixes: 52c0fdb2

 ("drm/i915: Replace global breadcrumbs with per-context interrupt tracking")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/33c46ef24cd547d0ad21dc106441491a@intel.com


[tursulin: Wrap commit text, fix Fixes: tag.]
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
parent 177f30c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment