diff options
author | 2020-01-01 00:06:02 +0000 | |
---|---|---|
committer | 2020-01-01 00:06:02 +0000 | |
commit | 517c7f72e4b49331006e638de2f401be0b84bfac (patch) | |
tree | 2f784c120e4e2860a690307128ece9d1c3585fdd /sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c | |
parent | drm/amdgpu: disallow direct upload save restore list from gfx driver (diff) | |
download | wireguard-openbsd-517c7f72e4b49331006e638de2f401be0b84bfac.tar.xz wireguard-openbsd-517c7f72e4b49331006e638de2f401be0b84bfac.zip |
drm/amdgpu: fix potential double drop fence reference
From Pan Bian
2c528fa3c40d16c61da38a9f4fa7a0ce71df4db3 in linux 4.19.y/4.19.92
946ab8db6953535a3a88c957db8328beacdfed9d in mainline linux
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c index 8904e62dca7..41d3142ef3c 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_test.c @@ -138,6 +138,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev) } dma_fence_put(fence); + fence = NULL; r = amdgpu_bo_kmap(vram_obj, &vram_map); if (r) { @@ -183,6 +184,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev) } dma_fence_put(fence); + fence = NULL; r = amdgpu_bo_kmap(gtt_obj[i], >t_map); if (r) { |