summaryrefslogtreecommitdiffstats
path: root/sound/soc/omap
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2014-10-03 15:32:40 +0300
committerMark Brown <broonie@kernel.org>2014-10-03 15:39:19 +0100
commitb2d9de549c30170eed5691d369cf16680e0ce03a (patch)
tree7de459e18dda0ac4f4a032222d246bd245f0f939 /sound/soc/omap
parent0bd2ac3dae74ee25c5ea171cb572731c7a89c248 (diff)
downloadlinux-b2d9de549c30170eed5691d369cf16680e0ce03a.tar.gz
linux-b2d9de549c30170eed5691d369cf16680e0ce03a.tar.bz2
linux-b2d9de549c30170eed5691d369cf16680e0ce03a.zip
ASoC: dapm: Fix NULL pointer dereference when registering card with widgets
Commit 0bd2ac3dae74 ("ASoC: Remove CODEC pointer from snd_soc_dapm_context") introduced regression to snd_soc_dapm_new_controls() when registering a card with card->dapm_widgets set. Call chain is: snd_soc_register_card() -> snd_soc_instantiate_card() -> snd_soc_dapm_new_controls() -> snd_soc_dapm_new_control() Null pointer dereference occurs since card->dapm context doesn't have associated component. Fix this by setting widget codec pointer conditionally. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/omap')
0 files changed, 0 insertions, 0 deletions