From: Takashi Iwai Date: Wed, 2 Feb 2011 16:16:38 +0000 (+0100) Subject: ALSA: hda - Fix memory leaks in conexant jack arrays X-Git-Tag: v2.6.37.1~177 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407ccedff1073b511b230cd86386977f5b12b36a;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed