drm/amd/amdgpu: make afmt_init cleanup if alloc fails (DCEv8)
authorTom St Denis <tom.stdenis@amd.com>
Thu, 3 Mar 2016 14:45:29 +0000 (09:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Mar 2016 16:01:56 +0000 (11:01 -0500)
commitff923479ee9b6ba9244398c7e97878fa37b5343c
tree7c4391d473e006fcc774b738fa2f36e23eadab40
parent74c1e842793fcc470413b1f7d14e2e74e1e8240b
drm/amd/amdgpu: make afmt_init cleanup if alloc fails (DCEv8)

If the allocation fails free memory and return error code.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c