drm/amdgpu: release the VM shadow in the error path as well
authorChristian König <christian.koenig@amd.com>
Fri, 2 Feb 2018 20:00:44 +0000 (21:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:20 +0000 (14:19 -0500)
commite5197a4c3dbff322efe1f70e23453318554d1598
tree417569b0c75023b5555968f3d4c04d3625b3be61
parenta3405d0c712df4b9fb34e6b1f6771b18f462bdd3
drm/amdgpu: release the VM shadow in the error path as well

Without it we run into a memory leak.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c