sound: sgio2audio/pdaudiocf/usb-audio: initialize PCM buffer
commit184369b078e7c0c13bcd9f4487b994536713cc4c
authorClemens Ladisch <clemens@ladisch.de>
Fri, 18 Dec 2009 08:27:24 +0000 (18 09:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 22:26:31 +0000 (6 14:26 -0800)
treef8340352b6e4d1307b4686d4ea1b63f5e3b168e2
parentfc480c27d9d5b2be5da93de8169d040f8a082f71
sound: sgio2audio/pdaudiocf/usb-audio: initialize PCM buffer

commit 3e85fd614c7b6bb7f33bb04a0dcb5a3bfca4c0fe upstream.

When allocating the PCM buffer, use vmalloc_user() instead of vmalloc().
Otherwise, it would be possible for applications to play the previous
contents of the kernel memory to the speakers, or to read it directly if
the buffer is exported to userspace.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/mips/sgio2audio.c
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
sound/usb/usbaudio.c