diff options
author | 2017-09-28 11:51:32 +0200 | |
---|---|---|
committer | 2017-10-06 17:44:30 -0400 | |
commit | 29d253553559dba919315be847f4f2cce29edd42 (patch) | |
tree | 3e6973a35e3b9ee5c92d76331895010080abaf8e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/sched: move adding finish callback to amd_sched_job_begin (diff) | |
download | linux-dev-29d253553559dba919315be847f4f2cce29edd42.tar.xz linux-dev-29d253553559dba919315be847f4f2cce29edd42.zip |
drm/amd/sched: NULL out the s_fence field after run_job
amd_sched_process_job drops the fence reference, so NULL out the s_fence
field before adding it as a callback to guard against accidentally using
s_fence after it may have be freed.
v2: add a clarifying comment
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andres Rodriguez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions