]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:03 +0000 (09:29 -0700)
commit849349aa2dabe93aee517f337e2394ab62921393
tree686014f530cbfacafe28a7109dd54f100c94cfa1
parent01567c41cfbca8fdc28565f0c33e89bbcb87ae2d
ASoC: tas2552: Fix kernel crash when the codec is loaded but not part of a card

commit 80ba2669ec8c3e6517aa935001f6cb8809bf3df4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/tas2552.c