]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/buddy: use kmemleak_update_trace
authorMatthew Auld <matthew.auld@intel.com>
Fri, 16 Aug 2019 10:53:57 +0000 (11:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Aug 2019 15:28:41 +0000 (16:28 +0100)
commit4d7e9e1b6bcd7a4e151f26d17c83763c46bdec2f
tree382516d0c036e82fe98e294ace4f4ae38162e957
parentf3d4bee188842ed21ebe41df77c81a9fd631d9e0
drm/i915/buddy: use kmemleak_update_trace

Since nodes are cached in a free-list, and potentially marked as free
without actually being destroyed, thus allowing them to be
opportunistically re-allocated, we should apply kmemleak_update_trace
every time a node is given a new owner and marked as allocated, to aid
in debugging.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190816105357.14340-2-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_buddy.c