]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac1d40f1641d60225640df61f31bf204b37cf89b
tree306c666a34d3563276c26589e8502a5028c9a0e7
parent60d5850dd24543a58d6c4497ec91d2fcd6be355b
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