drm/i915/selftests: Take an explicit ref for rq->batch
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Apr 2020 09:17:23 +0000 (10:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Apr 2020 12:40:07 +0000 (13:40 +0100)
commitfbaa1229d354b05fd8156b1ec1a0c00f084f4324
tree90e618d65d65eadb2ef136e3e874736cb32c3ae7
parentdd345efe8aa48656610db7f7a3ab8d906434db44
drm/i915/selftests: Take an explicit ref for rq->batch

Since we are peeking into the batch object of the request, it is
beholden on us to hold a reference to it.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1634
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408091723.28937-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c