aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/debug.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2017-07-01 00:05:17 +0100
committerChris Wilson <[email protected]>2017-07-04 11:55:27 +0100
commitfad2083483bb7f743486199f90dc042939323453 (patch)
treee9242564793907441ac200d25b940f7ffd087be2 /tools/lib/api/debug.c
parenta874b6a3fb22c8c30f36b1f6ba5430a4c2278a6a (diff)
drm/i915: Fix use-after-free of context during free_contexts
When iterating the list of contexts to free, we need to use a safe iterator as we are freeing the link as we go. Pass an extra thick brown paper bag. Fixes: 5f09a9c8ab6b ("drm/i915: Allow contexts to be unreferenced locklessly") Signed-off-by: Chris Wilson <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Matthew Auld <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Matthew Auld <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions