ALSA: pcm: remember to always call va_end() on stuff that we va_start()
authorJesper Juhl <jj@chaosbits.net>
Mon, 20 Dec 2010 23:03:17 +0000 (00:03 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Dec 2010 07:03:09 +0000 (08:03 +0100)
commit87a1c8aaa0bced8acf4cd64672362492460c31ae
treecbdd1a00380450b7e3f5cdaf027f21792a2498ee
parent022c92befa539174125b0a1b5e52dd57affefe9f
ALSA: pcm: remember to always call va_end() on stuff that we va_start()

The Coverity checker spotted that we do not always remember to call
va_end() on 'args' in failure paths in snd_pcm_hw_rule_add().
Here's a patch to fix that up (compile tested only) - it also removes
some annoying trailing whitespace that caught my eye while I was in the
area..

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c