diff options
author | Hugh Dickins <hugh@veritas.com> | 2005-06-22 00:15:09 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-22 01:46:20 (GMT) |
commit | 7c2f3fda5666c280bcd00ac3b86963270b23e796 (patch) | |
tree | 97404af53d1bb61912e5739690c053f8005bc299 /sound/oss/rme96xx.c | |
parent | 334795eca421287c41c257992027d29659dc0f97 (diff) | |
download | linux-fsl-qoriq-7c2f3fda5666c280bcd00ac3b86963270b23e796.tar.xz |
[PATCH] rme96xx: fix PageReserved range
rme96xx busmaster_malloc miscalculates and fails to set PageReserved on any
page of char *buf; but busmaster_free does it right, so do the same (I
don't have the card, just noticed this while sifting for rmap BUGs).
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'sound/oss/rme96xx.c')
-rw-r--r-- | sound/oss/rme96xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/rme96xx.c b/sound/oss/rme96xx.c index 76774bb..b4278ee 100644 --- a/sound/oss/rme96xx.c +++ b/sound/oss/rme96xx.c @@ -807,7 +807,7 @@ static void* busmaster_malloc(int size) { struct page* page, *last_page; page = virt_to_page(buf); - last_page = virt_to_page(buf + (1 << pg)); + last_page = page + (1 << pg); DBG(printk("setting reserved bit\n")); while (page < last_page) { SetPageReserved(page); |