diff options
author | Dave Airlie <airlied@redhat.com> | 2023-01-13 04:44:54 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-01-13 04:46:28 +0300 |
commit | a283773308a08c7009b3e095d188eb809a51425c (patch) | |
tree | 71e1072060b1c83ce300737368a48adb91982709 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
parent | b7bfaa761d760e72a969d116517eaa12e404c262 (diff) | |
parent | 5640e81607152d7f2d2558227c0f6cb78b8f39cf (diff) | |
download | linux-a283773308a08c7009b3e095d188eb809a51425c.tar.xz |
Merge tag 'drm-misc-fixes-2023-01-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
Several fixes for amdgpu (all addressing issues with fences), yet
another orientation quirk for a Lenovo device, a use-after-free fix for
virtio, a regression fix in TTM and a performance regression in drm
buddy.
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230112130954.pxt77g3a7rokha42@houat
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c index bac7976975bd..dcd8c066bc1f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c @@ -391,8 +391,10 @@ int amdgpu_sync_push_to_job(struct amdgpu_sync *sync, struct amdgpu_job *job) dma_fence_get(f); r = drm_sched_job_add_dependency(&job->base, f); - if (r) + if (r) { + dma_fence_put(f); return r; + } } return 0; } |