drm/amd/amdgpu: Make afmt_init() cleanup if alloc fails (DCEv11)
authorTom St Denis <tom.stdenis@amd.com>
Wed, 2 Mar 2016 14:19:57 +0000 (09:19 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Mar 2016 16:01:52 +0000 (11:01 -0500)
commit041ab0a49482502bd138203fd1b4d529eab97fe4
tree7f574137bdbb748b5dc57da48c6a4c1fd6fc74b9
parentc437b9d6c093c83c485a40c0f9e0d2cd98b36d38
drm/amd/amdgpu: Make afmt_init() cleanup if alloc fails (DCEv11)

Updated DCEv11 afmt_init to cleanup if any kzalloc
fails and then return an error code.  Don't continue initializing
the audio stack in that case.

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_v11_0.c