diff options
author | 2012-01-23 21:02:57 +0100 | |
---|---|---|
committer | 2012-01-24 15:29:32 +0100 | |
commit | 769fab2a41da4bd3c59eee38f47d6d5405738fe0 (patch) | |
tree | 615fc66dc9e534bc2318d4120d3506f85dbeb1e8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ALSA: ymfpci - Don't create invalid PCM & mixers when AC97 doesn't support (diff) | |
download | linux-dev-769fab2a41da4bd3c59eee38f47d6d5405738fe0.tar.xz linux-dev-769fab2a41da4bd3c59eee38f47d6d5405738fe0.zip |
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 <jj@chaosbits.net>
Acked-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions