Skip to content

Commit bc5954f

Browse files
AxelLinbroonie
authored andcommitted
ASoC: max98088 - fix a memory leak
Signed-off-by: Axel Lin <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 7a479b0 commit bc5954f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/soc/codecs/max98088.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,10 @@ static int max98088_probe(struct snd_soc_codec *codec)
20192019

20202020
static int max98088_remove(struct snd_soc_codec *codec)
20212021
{
2022+
struct max98088_priv *max98088 = snd_soc_codec_get_drvdata(codec);
2023+
20222024
max98088_set_bias_level(codec, SND_SOC_BIAS_OFF);
2025+
kfree(max98088->eq_texts);
20232026

20242027
return 0;
20252028
}

0 commit comments

Comments
 (0)