ASoC: core: Fix dai_link dereference.
authorLiam Girdwood <lrg@ti.com>
Mon, 30 Apr 2012 10:05:30 +0000 (11:05 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Apr 2012 10:09:13 +0000 (11:09 +0100)
commitcd0f8911c5d0cc04763f87cf118c66b867e2e6d2
tree05c19ef0f248ad3aa97e809abbcb53a2d38c0e23
parent81e8e4926167ab32593bbb915b45a42024ca1020
ASoC: core: Fix dai_link dereference.

We should check dailess before dereferencing.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c