drm/amdgpu: cleanup VM shadow BO unreferencing
authorChristian König <christian.koenig@amd.com>
Fri, 16 Sep 2016 11:06:09 +0000 (13:06 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Sep 2016 20:16:21 +0000 (16:16 -0400)
commit2698f6206f53bc23a40a1412b304225a6d62d120
tree2328c91d3c76e1761bc52a3c855bfb3de4d81206
parent0fc8683e568f228c08321fd99756f6230c98651b
drm/amdgpu: cleanup VM shadow BO unreferencing

Unreference the shadow BOs in the error path as well and drop the NULL checks.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c