]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ALSA: vx: Fix possible transfer overflow
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Jan 2017 11:19:15 +0000 (12:19 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Jan 2017 17:01:35 +0000 (18:01 +0100)
commit874e1f6fad9a5184b67f4cee37c1335cd2cc5677
tree352304fa4287e1d7d9b5522f46f26fc8c92dcf9d
parentab949d519601880fd46e8bc1445d6a453bf2dc09
ALSA: vx: Fix possible transfer overflow

The pseudo DMA transfer codes in VX222 and VX-pocket driver have a
slight bug where they check the buffer boundary wrongly, and may
overflow.  Also, the zero sample count might be handled badly for the
playback (although it shouldn't happen in theory).  This patch
addresses these issues.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=141541
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/vx/vx_pcm.c
sound/pci/vx222/vx222_ops.c
sound/pcmcia/vx/vxp_ops.c