]> git.karo-electronics.de Git - linux-beck.git/commit
ALSA: Don't leak in sound/core/oss/pcm_oss.c::snd_pcm_hw_param_near()
authorJesper Juhl <jj@chaosbits.net>
Thu, 6 Jan 2011 21:19:47 +0000 (22:19 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Jan 2011 10:13:42 +0000 (11:13 +0100)
commit3daa7ea650d59ae86926f0ced4c4ccd99ab33fda
tree775ded9a8f63af06d45c79fceac55be3126c36f6
parent689c69120ea3c8db069e11a7065ceffee90d0460
ALSA: Don't leak in sound/core/oss/pcm_oss.c::snd_pcm_hw_param_near()

snd_pcm_hw_param_near() will leak the memory allocated to 'save' if the
call to snd_pcm_hw_param_max() returns less than zero.
This patch makes sure we never leak.

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