ASoC: tas2552: Fix kernel crash when the codec is loaded but not part of a card
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 4 Jun 2015 13:04:14 +0000 (16:04 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jun 2015 16:49:46 +0000 (17:49 +0100)
commit80ba2669ec8c3e6517aa935001f6cb8809bf3df4
tree7014149c60e2edadbfb3407a6dbf23441fe2cc13
parentea178d1456dcf88875d5edd148f2df8ea0de1794
ASoC: tas2552: Fix kernel crash when the codec is loaded but not part of a card

If the card is not part of any card the tas_data->codec is NULL since it is
set only during snd_soc_codec_driver.probe, which is not yet called.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/tas2552.c