ASoC: Add a sanity check before using dai driver name
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 24 Aug 2017 04:40:17 +0000 (12:40 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 25 Aug 2017 13:49:44 +0000 (14:49 +0100)
commit6a6dafda937cfcdbbfe46a3e093de8bb929ba52d
tree20c95617a086d61120c0493e2199a21993f3ea42
parent4958471b0d2110a34df0b45803e6f24ed89b857b
ASoC: Add a sanity check before using dai driver name

The dai driver's name is allowed to be NULL. So add a sanity check for
that.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reported-by: Donglin Peng <dolinux.peng@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c