From: Julia Lawall Date: Fri, 2 Apr 2010 12:47:59 +0000 (+0200) Subject: ALSA: echoaudio - Eliminate use after free X-Git-Tag: v2.6.34-rc4~29^2~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0fd4345f928d72a56e27b23e4cd28c94bf36be5;p=pandora-kernel.git ALSA: echoaudio - Eliminate use after free Use the call to snd_card_free in the error handling code at the end of the function, as in the other error cases. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression E,E2; @@ snd_card_free(E) ... ( E = E2 | * E ) // Signed-off-by: Julia Lawall Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed