From: Jesper Juhl Date: Mon, 23 Jan 2012 20:02:57 +0000 (+0100) Subject: ALSA: Fix memory leak on error in snd_compr_set_params() X-Git-Tag: v3.3-rc2~21^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=769fab2a41da4bd3c59eee38f47d6d5405738fe0;p=pandora-kernel.git ALSA: Fix memory leak on error in snd_compr_set_params() If copy_from_user() does not return 0 we'll leak the memory we allocated for 'params' when that variable goes out of scope. Also a small CodingStyle cleanup: Use braces on both branches of if/else when one branch needs it. Signed-off-by: Jesper Juhl Acked-by: Vinod Koul Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed