]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm core - add a safe check to the silence filling function
authorJaroslav Kysela <perex@perex.cz>
Mon, 19 Jul 2010 14:37:39 +0000 (16:37 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Jul 2010 14:47:01 +0000 (16:47 +0200)
commita25ed58217d0446d47e9981a625d1b83ca66569f
tree66b750cb33712c853d887a648f94875346b445d5
parent128c17689b3cb9fcac3e60027fbf770f11f38334
ALSA: pcm core - add a safe check to the silence filling function

In situation when appl_ptr is far greater then hw_ptr, the hw_avail value
can be greater than buffer_size. Check for this.

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