]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d408d7cfbf767d4fc6aa2c42f0f785de93aeeff
tree7014149c60e2edadbfb3407a6dbf23441fe2cc13
parent95c8a13bbf812296da82f3f452e1da7c9a223112
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