diff options
author | 2017-07-01 00:05:17 +0100 | |
---|---|---|
committer | 2017-07-04 11:55:27 +0100 | |
commit | fad2083483bb7f743486199f90dc042939323453 (patch) | |
tree | e9242564793907441ac200d25b940f7ffd087be2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: Prevent kernel panic when reading/writing compliance debugfs files, v2. (diff) | |
download | linux-dev-fad2083483bb7f743486199f90dc042939323453.tar.xz linux-dev-fad2083483bb7f743486199f90dc042939323453.zip |
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 <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170630230517.1938-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions