]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: dapm: Make sure we have a card when displaying component widgets
authorMark Brown <broonie@kernel.org>
Fri, 18 Mar 2016 12:04:23 +0000 (12:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:08 +0000 (14:49 -0700)
commitc1d80c01d44ecc0909200968274b116492fb36a5
treefce500935b54f520e66a7b2471c580952567febf
parent98e318d5ce62c6f3da316022a6b716c22aa64409
ASoC: dapm: Make sure we have a card when displaying component widgets

commit 47325078f2a3e543150e7df967e45756b2fff7ec upstream.

The dummy component is reused for all cards so we special case and don't
bind it to any of them.  This means that code like that displaying the
component widgets that tries to look at the card will crash.  In the
future we will fix this by ensuring that the dummy component looks like
other components but that is invasive and so not suitable for a fix.
Instead add a special case check here.

Reported-by: Harry Pan <harry.pan@intel.com>
Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-dapm.c