Skip to content

Commit

Permalink
[PATCH] rme96xx: fix PageReserved range
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Jun 22, 2005
1 parent 334795e commit 7c2f3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/oss/rme96xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c2f3fd

Please sign in to comment.