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.38-rc4~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70f7db11c45a313b23922cacf248c613c3b2144c;p=pandora-kernel.git 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: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed