android_kernel_oneplus_msm8998/sound/drivers/vx
Takashi Iwai fe21a3d688 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-21 09:21:20 +01:00
..
Makefile [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
vx_cmd.c ALSA: Kill snd_assert() in other places 2008-08-13 11:46:40 +02:00
vx_cmd.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vx_core.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
vx_hwdep.c ALSA: vx: hard dependency on the standard fw loader 2012-11-22 17:48:01 +01:00
vx_mixer.c ALSA: vx: Use snd_ctl_elem_info() 2014-10-21 08:12:15 +02:00
vx_pcm.c ALSA: vx: Fix possible transfer overflow 2017-11-21 09:21:20 +01:00
vx_uer.c ALSA: vx: Use nonatomic PCM ops 2014-09-15 15:52:03 +02:00