mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ASoC: sta32x: set ->component pointer in private struct
commit747df19747upstream The ESD watchdog code in sta32x_watchdog() dereferences the pointer which is never assigned. This is a regression froma1be4cead9("ASoC: sta32x: Convert to direct regmap API usage.") which went unnoticed since nobody seems to use that ESD workaround. Fixes:a1be4cead9("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: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
07eae146f5
commit
2e59810295
@@ -879,6 +879,9 @@ static int sta32x_probe(struct snd_soc_codec *codec)
|
||||
struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec);
|
||||
struct sta32x_platform_data *pdata = sta32x->pdata;
|
||||
int i, ret = 0, thermal = 0;
|
||||
|
||||
sta32x->codec = codec;
|
||||
|
||||
ret = regulator_bulk_enable(ARRAY_SIZE(sta32x->supplies),
|
||||
sta32x->supplies);
|
||||
if (ret != 0) {
|
||||
|
||||
Reference in New Issue
Block a user