From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Guenter Geiger <geiger@debian.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] rme96xx: fix PageReserved range
Date: Mon, 6 Jun 2005 20:53:46 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.61.0506062052260.5000@goblin.wat.veritas.com> (raw)
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);
reply other threads:[~2005-06-06 19:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.61.0506062052260.5000@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=akpm@osdl.org \
--cc=geiger@debian.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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