ASoC: soc-pcm: fix dpcm_path_get error handling
authorQiao Zhou <zhouqiao@marvell.com>
Wed, 10 Sep 2014 09:54:07 +0000 (17:54 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 10 Sep 2014 10:40:21 +0000 (11:40 +0100)
commit8f70e515a8bb6a1908b40b786cb43f6491e8da04
treefd3a599d5323061479b01137035c588d562ac421
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
ASoC: soc-pcm: fix dpcm_path_get error handling

dpcm_path_get may return -ENOMEM when allocating memory for list
fails. We should not keep processing path or start up dpcm dai in
this case.

Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c
sound/soc/soc-pcm.c