diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-01-01 00:06:03 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-01-01 00:06:03 +0000 |
commit | 86ab6a93a7b2c601e3a4eee4d929ef6aa971634e (patch) | |
tree | 3847db0e1bb69fd76a2ead294024ca510b715cf2 /sys/dev/pci/drm | |
parent | 7dd0dd367dd28eeb0054505eed2a06759c345763 (diff) |
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')
-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) { |