]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite87a7bcea9bcc36ae71a129aaf3077d18a668a11
tree90e618d65d65eadb2ef136e3e874736cb32c3ae7
parentb14840d13a8aada7a2cf6ca0430e6054916f5cc6
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