mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[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>
This commit is contained in:
parent
334795eca4
commit
7c2f3fda56
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue