Skip to content

Commit b4ca435

Browse files
icklerodrigovivi
authored andcommitted
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: b3786b2 ("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 (cherry picked from commit 45e50f4) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent d2e3fce commit b4ca435

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/i915/gt/intel_lrc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5457,6 +5457,7 @@ static void virtual_context_destroy(struct kref *kref)
54575457
__execlists_context_fini(&ve->context);
54585458
intel_context_fini(&ve->context);
54595459

5460+
intel_breadcrumbs_free(ve->base.breadcrumbs);
54605461
intel_engine_free_request_pool(&ve->base);
54615462

54625463
kfree(ve->bonds);

0 commit comments

Comments
 (0)