mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rme96xx: fix PageReserved range
@ 2005-06-06 19:53 Hugh Dickins
  0 siblings, 0 replies; only message in thread
From: Hugh Dickins @ 2005-06-06 19:53 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Guenter Geiger, linux-kernel

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>
---

 sound/oss/rme96xx.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- 2.6.12-rc6/sound/oss/rme96xx.c	2005-03-02 07:38:55.000000000 +0000
+++ linux/sound/oss/rme96xx.c	2005-06-04 20:41:55.000000000 +0100
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-06 19:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-06 19:53 [PATCH] rme96xx: fix PageReserved range Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome