]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: Add cpu_dai and codec_dai names NULL check
authorXiubo Li <Li.Xiubo@freescale.com>
Fri, 20 Dec 2013 06:39:50 +0000 (14:39 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 21 Dec 2013 14:42:48 +0000 (14:42 +0000)
commitf5ec03ed3b863126c1271689d0ed811998e0eef7
tree3aa43f149a98c663e0d5435a1276f213eb69db01
parenta5fb414e950c798f6e30c43b59bd523ed92eb912
ASoC: simple-card: Add cpu_dai and codec_dai names NULL check

The name of cpu DAI maybe omitted, and then strlen() will lead
kernel panic.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/generic/simple-card.c