mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
ALSA: hda - Fix memory leaks at module unload
commit 59cad16bc6 upstream.
Some caches aren't released properly at module unloading time.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e4508b4cb7
commit
354e550aab
|
|
@ -1192,6 +1192,7 @@ static void snd_hda_codec_free(struct hda_codec *codec)
|
|||
{
|
||||
if (!codec)
|
||||
return;
|
||||
snd_hda_jack_tbl_clear(codec);
|
||||
restore_init_pincfgs(codec);
|
||||
#ifdef CONFIG_SND_HDA_POWER_SAVE
|
||||
cancel_delayed_work(&codec->power_work);
|
||||
|
|
@ -1200,6 +1201,7 @@ static void snd_hda_codec_free(struct hda_codec *codec)
|
|||
list_del(&codec->list);
|
||||
snd_array_free(&codec->mixers);
|
||||
snd_array_free(&codec->nids);
|
||||
snd_array_free(&codec->cvt_setups);
|
||||
snd_array_free(&codec->conn_lists);
|
||||
snd_array_free(&codec->spdif_out);
|
||||
codec->bus->caddr_tbl[codec->addr] = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user