drm/amdgpu: fix error handling in amdgpu_bo_do_create
authorChristian König <christian.koenig@amd.com>
Tue, 31 Oct 2017 08:36:13 +0000 (09:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Oct 2017 21:54:13 +0000 (17:54 -0400)
commita695e43712242c354748e9bae5d137d4337a7694
tree743be2e75deb75b3a44c71b9efa0ab1ac1492164
parent4d98e5ee6084f6d7bc578c5d5f86de7156aaa4cb
drm/amdgpu: fix error handling in amdgpu_bo_do_create

The bo structure is freed up in case of an error, so we can't do any
accounting if that happens.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c