diff options
author | 2023-02-03 08:49:20 -0800 | |
---|---|---|
committer | 2023-02-06 09:38:54 +0000 | |
commit | 960dafa30455450d318756a9896a02727f2639e0 (patch) | |
tree | 4f4bec50c5a41a67fad3874e9947e1c992ec6fac /drivers/gpu/drm/i915/intel_pcode.c | |
parent | drm/i915: Make sure dsm_size has correct granularity (diff) | |
download | wireguard-linux-960dafa30455450d318756a9896a02727f2639e0.tar.xz wireguard-linux-960dafa30455450d318756a9896a02727f2639e0.zip |
drm/i915: Move fd_install after last use of fence
Because eb_composite_fence_create() drops the fence_array reference
after creation of the sync_file, only the sync_file holds a ref to the
fence. But fd_install() makes that reference visable to userspace, so
it must be the last thing we do with the fence.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Fixes: 00dae4d3d35d ("drm/i915: Implement SINGLE_TIMELINE with a syncobj (v4)")
Cc: <stable@vger.kernel.org> # v5.15+
[tursulin: Added stable tag.]
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230203164937.4035503-1-robdclark@gmail.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pcode.c')
0 files changed, 0 insertions, 0 deletions