ASoC: core: Fix possible NULL pointer dereference of pcm->config
authorXiubo Li <Li.Xiubo@freescale.com>
Thu, 16 Jan 2014 08:08:04 +0000 (16:08 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 16 Jan 2014 14:11:49 +0000 (14:11 +0000)
commitec4f2857cd41b7c5af6350e7ab2a8fe1874dae59
tree15229e716b34f21fdd633c13e1a47efbecce22f8
parentd70e861a3154833467023123e218e9b1ba558809
ASoC: core: Fix possible NULL pointer dereference of pcm->config

Since the soc generic dmaengine pcm driver allows using the defualt settings,
so the pcm->config maybe NULL.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-generic-dmaengine-pcm.c