diff options
| author | Itai Nahshon <nahshon@actcom.co.il> | 2002-03-14 17:55:38 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@mandrakesoft.com> | 2002-03-14 17:55:38 -0500 |
| commit | fa15f5ec8afb494ea4fa7a2677e5db3f409999c5 (patch) | |
| tree | 9ce3de7822bba0dfffb334276af0f015eede4cd1 | |
| parent | ec9e8eb6b8d0d47aa985542fab401cb185b5485c (diff) | |
Fix via audio recording, when frag size < page size.
| -rw-r--r-- | sound/oss/via82cxxx_audio.c | 2 |
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, |
