]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 Feb 2011 16:16:38 +0000 (17:16 +0100)
commitd991508741b270f38d07724235ff0ad45777cb5d
treed7d5b6bab9d76f15b7539cb9147d76a338db42ec
parente8a74a21b30e39b0dbff8cd78cf994e56fd6b52f
ALSA: hda - Fix memory leaks in conexant jack arrays

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

Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c