drm/amdgpu: fix memory leak in amdgpu_vm_update_page_directory
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 8 Oct 2015 13:58:01 +0000 (19:28 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Oct 2015 16:18:23 +0000 (12:18 -0400)
commit7a574557e62dc3d2d7ed55fa0b99e7d5bb403878
tree687c340beefa359ee7b693d73abd2f53bb979163
parent028423b0d8fa27c30a46da4af2a5cab230369de6
drm/amdgpu: fix memory leak in amdgpu_vm_update_page_directory

If amdgpu_ib_get() fails we returned the error code but we missed
freeing ib.

Cc: "Christian König" <christian.koenig@amd.com>
Cc: Jammy Zhou <Jammy.Zhou@amd.com>
Cc: Chunming Zhou <david1.zhou@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "monk.liu" <monk.liu@amd.com>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c