]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: vx: Fix possible transfer overflow
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Jan 2017 11:19:15 +0000 (12:19 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 7 Dec 2017 02:20:12 +0000 (21:20 -0500)
commit01e135f94414d4fc0abf6febc48108d989ad7c45
treece3802eac00a4f5ec9202a0d9deb220331d0433d
parentdb2e059fb898dc8142796b3a7010a626c0c398f5
ALSA: vx: Fix possible transfer overflow

[ Upstream commit 874e1f6fad9a5184b67f4cee37c1335cd2cc5677 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
sound/drivers/vx/vx_pcm.c
sound/pci/vx222/vx222_ops.c
sound/pcmcia/vx/vxp_ops.c