]> 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)
commita25af2b59e78c7c246da3ddc8ff11108df748922
tree7f574137bdbb748b5dc57da48c6a4c1fd6fc74b9
parent9e6f8efb55c8ce21871330e8588b69a7752831ad
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