diff options
author | Chris Wilson <[email protected]> | 2020-11-02 16:19:31 +0000 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2020-11-03 19:22:42 -0500 |
commit | 537457a979a02a410b555fab289dcb28b588f33b (patch) | |
tree | 03fd6a3258c548326e0733f1e9efae9ffd3e3792 /tools/perf/scripts/python/stat-cpi.py | |
parent | e67d01d8494640018b08cd767aeb2824a8e11983 (diff) |
drm/i915: Hold onto an explicit ref to i915_vma_work.pinned
Since __vma_release is run by a kworker after the fence has been
signaled, it is no longer protected by the active reference on the vma,
and so the alias of vw->pinned to vma->obj is also not protected by a
reference on the object. Add an explicit reference for vw->pinned so it
will always be safe.
Found by inspection.
Fixes: 54d7195f8c64 ("drm/i915: Unpin vma->obj on early error")
Reported-by: Tvrtko Ursulin <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: <[email protected]> # v5.6+
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit bc73e5d33048b7ab5f12b11b5d923700467a8e1d)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions