drm/amdgpu: fix a vm_flush fence leak
commit88a45e5d2c0d4bc2a79d33af411068992d07d564
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 23 Oct 2016 18:31:45 +0000 (23 21:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:53 +0000 (18 10:51 +0100)
tree69c0e7aec20560aea1d2c2e2967229dd47bde220
parent25ed6e4b0b651d84cc88e1347d34d186f45146ec
drm/amdgpu: fix a vm_flush fence leak

commit 2d7c17be00e0dce3bc1a092a2c277a9f86c69ca9 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c