]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: us122l: Fix pcm_usb_stream mmapping regression
authorTakashi Iwai <tiwai@suse.de>
Mon, 14 Oct 2013 14:02:15 +0000 (16:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Oct 2013 09:35:54 +0000 (11:35 +0200)
commitc89a64cf714534f22793a458b439fc4b7c0ad64e
treec21e0eaf6bb39452a1f0ec27186288dca582e72c
parentfdb710271bbc1e611a870e37e00aada6cfc78dc9
ALSA: us122l: Fix pcm_usb_stream mmapping regression

The pcm_usb_stream plugin requires the mremap explicitly for the read
buffer, as it expands itself once after reading the required size.
But the commit [02cf020b: mm: kill vma flag VM_RESERVED and
mm->reserved_vm counter] converted blindly to a combination of
VM_DONTEXPAND | VM_DONTDUMP like other normal drivers, and this
resulted in the failure of mremap().

For fixing this regression, we need to remove VM_DONTEXPAND for the
read-buffer mmap.

Reported-and-tested-by: James Miller <jamesstewartmiller@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/us122l.c