Skip to content

Commit 24fb2b1

Browse files
AxelLinbroonie
authored andcommitted
ASoC: wm8994 - fix memory leaks
Signed-off-by: Axel Lin <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent cd70978 commit 24fb2b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/codecs/wm8994.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4061,6 +4061,8 @@ static int wm8994_codec_remove(struct snd_soc_codec *codec)
40614061
wm8994_free_irq(codec->control_data, WM8994_IRQ_MIC2_DET, wm8994);
40624062
wm8994_free_irq(codec->control_data, WM8994_IRQ_MIC1_SHRT, wm8994);
40634063
wm8994_free_irq(codec->control_data, WM8994_IRQ_MIC1_DET, wm8994);
4064+
kfree(wm8994->retune_mobile_texts);
4065+
kfree(wm8994->drc_texts);
40644066
kfree(wm8994);
40654067

40664068
return 0;

0 commit comments

Comments
 (0)