]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b9149a47d364bc47ab389815f1dd1ca5836a27b
tree7f574137bdbb748b5dc57da48c6a4c1fd6fc74b9
parentdf73fe324bcd74705cbb5056d2b8d9b861dce005
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