ASoC: amd: Add error checking to probe function
authorGuenter Roeck <[email protected]>
Tue, 21 Nov 2017 04:27:56 +0000 (20:27 -0800)
committerMark Brown <[email protected]>
Mon, 27 Nov 2017 16:30:54 +0000 (16:30 +0000)
commitfdaa451107ce543d345a339b4d5e20e8e4bac396
treec4ebfeaebd965735cea5d90332d0f8013b79e628
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
ASoC: amd: Add error checking to probe function

The acp_audio_dma does not perform sufficient error checking in its probe
function. This can result in crashes if a critical error path is
encountered.

Fixes: 7c31335a03b6a ("ASoC: AMD: add AMD ASoC ACP 2.x DMA driver")
Cc: Alex Deucher <[email protected]>
Cc: Dominik Behr <[email protected]>
Cc: Daniel Kurtz <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/amd/acp-pcm-dma.c