ASoC: dapm: Check return value of snd_soc_cnew()
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 1 Aug 2013 12:08:06 +0000 (14:08 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 1 Aug 2013 13:12:59 +0000 (14:12 +0100)
commit9356e9d51c80114fce2d7d8be99bce1d7e19d063
treeb510ee65c095dd5ceecc218023d9270a5f7a9f7d
parent46a02c978fbc79de856d0fe7a8c1d4fc620796e0
ASoC: dapm: Check return value of snd_soc_cnew()

snd_soc_cnew() can return NULL, so we should check the result before trying to
use it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-dapm.c