]> Git Repo - linux.git/commit
ALSA: Fix memory leak on error in snd_compr_set_params()
authorJesper Juhl <[email protected]>
Mon, 23 Jan 2012 20:02:57 +0000 (21:02 +0100)
committerTakashi Iwai <[email protected]>
Tue, 24 Jan 2012 14:29:32 +0000 (15:29 +0100)
commit769fab2a41da4bd3c59eee38f47d6d5405738fe0
tree615fc66dc9e534bc2318d4120d3506f85dbeb1e8
parent4d20bb1d5fe1afbdbff951c06cd3d3654fa5ceed
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 <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/core/compress_offload.c
This page took 0.052452 seconds and 4 git commands to generate.