drm/i915/gt: Remember to free the virtual breadcrumbs
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Nov 2020 13:38:39 +0000 (13:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Nov 2020 23:58:08 +0000 (23:58 +0000)
commit45e50f48b7907e650cfbbc7879abfe3a0c419c73
treee33a2acf3466f8b08e5c23a40263aebd2642bcf8
parentd33fcd798cb71268a48f5a26a8ab7ab0ddd51955
drm/i915/gt: Remember to free the virtual breadcrumbs

Since we allocate some breadcrumbs for the virtual engine, and the
virtual engine has a custom destructor, we also need to free the
breadcrumbs after use.

Fixes: b3786b29379c ("drm/i915/gt: Distinguish the virtual breadcrumbs from the irq breadcrumbs")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201118133839.1783-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c