]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amdgpu: fix a vm_flush fence leak
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 23 Oct 2016 18:31:45 +0000 (21:31 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Oct 2016 21:00:51 +0000 (17:00 -0400)
commit2d7c17be00e0dce3bc1a092a2c277a9f86c69ca9
tree8eda2105b6427bb3b718a210b6b3ae9288cb3245
parenta053fb7e512c77f0742bceb578b10025256e1911
drm/amdgpu: fix a vm_flush fence leak

Looks like .last_flush reference is left at teardown.
Leak reported by CONFIG_SLUB_DEBUG.

Fixes: 41d9eb2c5a2a ("drm/amdgpu: add a fence after the VM flush")
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c