]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: hda - Fix memory leaks in conexant jack arrays
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 Feb 2011 16:16:38 +0000 (17:16 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:26 +0000 (12:46 -0400)
commit9b04ce65af3517effa670bd366f3850fec42a0e2
treea57ebb9e76fb76c5490233892b859f5a0c18edb6
parenta80c508bb361721c1e6428a1ac61168f30c0641d
ALSA: hda - Fix memory leaks in conexant jack arrays

commit 70f7db11c45a313b23922cacf248c613c3b2144c upstream.

The Conexant codec driver adds the jack arrays in init callback which
may be called also in each PM resume.  This results in the addition of
new jack element at each time.

The fix is to check whether the requested jack is already present in
the array.

Reference: Novell bug 668929
https://bugzilla.novell.com/show_bug.cgi?id=668929

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/pci/hda/patch_conexant.c