ALSA: pcm_lib: fix "something must be really wrong" condition
authorJaroslav Kysela <perex@perex.cz>
Fri, 8 Jan 2010 07:43:01 +0000 (08:43 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 8 Jan 2010 07:46:45 +0000 (08:46 +0100)
commit7b3a177b0d4f92b3431b8dca777313a07533a710
tree25a484491731ef31baa6a80f468ed78d6e553cd9
parent1250932e48d3b698415b1f04775433cf1da688d6
ALSA: pcm_lib: fix "something must be really wrong" condition

When runtime->periods == 1 or when pointer crosses end of ring buffer,
the delta might be greater than buffer_size.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/core/pcm_lib.c