drm/i915/selftests: Take a ref to the request we wait upon
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Nov 2019 10:27:41 +0000 (10:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Nov 2019 10:46:02 +0000 (10:46 +0000)
commitc53d13138da055646a197633c08b68969233e84b
tree306c666a34d3563276c26589e8502a5028c9a0e7
parente668950149dedb873496a282eae3a8319713de76
drm/i915/selftests: Take a ref to the request we wait upon

i915_request_add() consumes the passed in reference to the i915_request,
so if the selftest caller wishes to wait upon it afterwards, it needs to
take a reference for itself.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191120102741.3734346-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c