Skip to content

Commit 747df19

Browse files
zonquebroonie
authored andcommitted
ASoC: sta32x: set ->component pointer in private struct
The ESD watchdog code in sta32x_watchdog() dereferences the pointer which is never assigned. This is a regression from a1be4ce ("ASoC: sta32x: Convert to direct regmap API usage.") which went unnoticed since nobody seems to use that ESD workaround. Fixes: a1be4ce ("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
1 parent c50535e commit 747df19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/soc/codecs/sta32x.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,9 @@ static int sta32x_probe(struct snd_soc_component *component)
879879
struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component);
880880
struct sta32x_platform_data *pdata = sta32x->pdata;
881881
int i, ret = 0, thermal = 0;
882+
883+
sta32x->component = component;
884+
882885
ret = regulator_bulk_enable(ARRAY_SIZE(sta32x->supplies),
883886
sta32x->supplies);
884887
if (ret != 0) {

0 commit comments

Comments
 (0)