drm/i915/selftests: Fix return value check in live_breadcrumbs_smoketest()
authorZhihao Cheng <chengzhihao1@huawei.com>
Tue, 1 Jun 2021 09:19:35 +0000 (09:19 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 2 Jun 2021 09:26:00 +0000 (10:26 +0100)
commit8f4caef8d5401b42c6367d46c23da5e0e8111516
tree3d2d51b5f0e31ffa1663782cfdda55f096b15639
parent177f30c6c1b9c016df312decd14b4fc05e7f1f45
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: 52c0fdb25c7c ("drm/i915: Replace global breadcrumbs with per-context interrupt tracking")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Tvrtko 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: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/selftests/i915_request.c