diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2018-08-15 13:11:35 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-15 15:52:20 +0100 |
commit | 249dc49576fc953a7378b916c6a6d47ea81e4da2 (patch) | |
tree | cb787548edd2c234aa106bf893f98776cb04425e /crypto | |
parent | 12eeeb4f4733bbc4481d01df35933fc15beb8b19 (diff) | |
download | linux-249dc49576fc953a7378b916c6a6d47ea81e4da2.tar.gz linux-249dc49576fc953a7378b916c6a6d47ea81e4da2.tar.bz2 linux-249dc49576fc953a7378b916c6a6d47ea81e4da2.zip |
ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs
Commit a655de808cbde ("ASoC: core: Allow topology to override
machine driver FE DAI link config.") caused soc_dai_hw_params to
be come dependent on the substream private_data being set with
a pointer to the snd_soc_pcm_runtime. Currently, CODEC to CODEC
links don't set this, which causes a NULL pointer dereference:
[<4069de54>] (soc_dai_hw_params) from
[<40694b68>] (snd_soc_dai_link_event+0x1a0/0x380)
Since the ASoC core in general assumes that the substream
private_data will be set to a pointer to the snd_soc_pcm_runtime,
update the CODEC to CODEC links to respect this.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions