]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: emu10k1: Avoid access to invalid pages when period=1
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Aug 2012 10:51:21 +0000 (12:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Aug 2012 10:51:21 +0000 (12:51 +0200)
commit39ad44678b003ccf8b3263a53a1bb2b6dcfa6032
tree48f69f0f63ad101d7b1835363786f91156d52c47
parent2a6a7b936a695eb8d60292894b6e12ebe9f1138f
ALSA: emu10k1: Avoid access to invalid pages when period=1

When period=1, the driver tries to allocate a bit bigger buffer than
requested by the user due to the irq latency tolerance.  This may lead
to accesses over the actually allocated pages.

This patch adds a check of the page index and assigns the silent page
when it's over the given buffer size.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/memory.c