summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItai Nahshon <nahshon@actcom.co.il>2002-03-14 17:55:38 -0500
committerJeff Garzik <jgarzik@mandrakesoft.com>2002-03-14 17:55:38 -0500
commitfa15f5ec8afb494ea4fa7a2677e5db3f409999c5 (patch)
tree9ce3de7822bba0dfffb334276af0f015eede4cd1
parentec9e8eb6b8d0d47aa985542fab401cb185b5485c (diff)
Fix via audio recording, when frag size < page size.
-rw-r--r--sound/oss/via82cxxx_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/via82cxxx_audio.c b/sound/oss/via82cxxx_audio.c
index 70d27cb5621b..c41a49ebcb6e 100644
--- a/sound/oss/via82cxxx_audio.c
+++ b/sound/oss/via82cxxx_audio.c
@@ -2049,7 +2049,7 @@ handle_one_block:
while ((count > 0) && (chan->slop_len < chan->frag_size)) {
size_t slop_left = chan->frag_size - chan->slop_len;
void *base = chan->pgtbl[n / (PAGE_SIZE / chan->frag_size)].cpuaddr;
- unsigned ofs = n % (PAGE_SIZE / chan->frag_size);
+ unsigned ofs = (n % (PAGE_SIZE / chan->frag_size)) * chan->frag_size;
size = (count < slop_left) ? count : slop_left;
if (copy_to_user (userbuf,