ASoC: sta32x: set ->component pointer in private struct
authorDaniel Mack <daniel@zonque.org>
Thu, 11 Oct 2018 18:32:05 +0000 (20:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:42 +0000 (11:08 -0800)
commit8d564c8c60c505fc0d484a14a2965a39d5dd721e
tree92538915ed07d972fb6b406f94280c7357ea1086
parent77a651186ed5ee9aff6e3811b0b6e757a44d8eeb
ASoC: sta32x: set ->component pointer in private struct

commit 747df19747bc9752cd40b9cce761e17a033aa5c2 upstream.

The ESD watchdog code in sta32x_watchdog() dereferences the pointer
which is never assigned.

This is a regression from a1be4cead9b950 ("ASoC: sta32x: Convert to direct
regmap API usage.") which went unnoticed since nobody seems to use that ESD
workaround.

Fixes: a1be4cead9b950 ("ASoC: sta32x: Convert to direct regmap API usage.")
Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/sta32x.c