]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/i915: don't leak global_timeline
authorMatthew Auld <matthew.auld@intel.com>
Thu, 17 Nov 2016 21:04:11 +0000 (21:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 17 Nov 2016 21:05:37 +0000 (21:05 +0000)
commitea84aa776fb996130662ac16f59218117a39a311
treea74a102ce02f33cb823228b8e697ff17bd68f1c4
parented9724ddde863ab650f7aaf61d577920dd2b3e15
drm/i915: don't leak global_timeline

We need to clean up the global_timeline in i915_gem_load_cleanup.

v2: don't forget about the struct_mutex, and also WARN_ON if we have any
remaining timelines before purging the global_timeline.

v3: it might be a good idea to first remove the global_timeline...duh!

Fixes: 73cb97010d4f ("drm/i915: Combine seqno + tracking into a global timeline struct")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1479415087-13216-1-git-send-email-matthew.auld@intel.com
Link: http://patchwork.freedesktop.org/patch/msgid/20161117210411.14044-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c