Skip to content
Commit fcfb7866 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent c810f903
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment