Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda - Fix memory leaks at module unload

Some caches aren't released properly at module unloading time.

Cc: <stable@vger.kernel.org> [v3.4+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2
+2
sound/pci/hda/hda_codec.c
··· 1184 1184 { 1185 1185 if (!codec) 1186 1186 return; 1187 + snd_hda_jack_tbl_clear(codec); 1187 1188 restore_init_pincfgs(codec); 1188 1189 #ifdef CONFIG_SND_HDA_POWER_SAVE 1189 1190 cancel_delayed_work(&codec->power_work); ··· 1193 1192 list_del(&codec->list); 1194 1193 snd_array_free(&codec->mixers); 1195 1194 snd_array_free(&codec->nids); 1195 + snd_array_free(&codec->cvt_setups); 1196 1196 snd_array_free(&codec->conn_lists); 1197 1197 snd_array_free(&codec->spdif_out); 1198 1198 codec->bus->caddr_tbl[codec->addr] = NULL;