]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:00 +0000 (14:47 -0800)
commit5ce60110c2c372cc9e1f1e52636b4f84417142ec
treeaf5cdc5843d00bd077f02c9d288957576963c999
parentaf21ae870ed23f4671b07909342e1d9814529105
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: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/patch_conexant.c