From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: [OOPS] 2.6.7-rc2: mpage_writepage
Date: Tue, 1 Jun 2004 17:46:25 +0100 [thread overview]
Message-ID: <20040601174625.B31301@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20040601150025.A31301@flint.arm.linux.org.uk>; from rmk+lkml@arm.linux.org.uk on Tue, Jun 01, 2004 at 03:00:25PM +0100
On Tue, Jun 01, 2004 at 03:00:25PM +0100, Russell King wrote:
> I've been trying to look at a cache problem on ARM PXA, but unfortunately
> hit the following problem:
>
> Opening 'l/testfile'
> Unable to handle kernel NULL pointer dereference at virtual address 00000000
> PC is at 0x0
> LR is at mpage_writepage+0x1fc/0x5e0
Ok, I intend to work around this bug by the following:
--- orig/fs/mpage.c Thu Apr 22 15:28:27 2004
+++ linux/fs/mpage.c Tue Jun 1 17:44:11 2004
@@ -619,7 +619,7 @@
writepage = NULL;
if (get_block == NULL)
writepage = mapping->a_ops->writepage;
-
+if (!get_block && !writepage) return 0; /* save us from ramfs */
pagevec_init(&pvec, 0);
if (wbc->sync_mode == WB_SYNC_NONE) {
index = mapping->writeback_index; /* Start from prev offset */
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
prev parent reply other threads:[~2004-06-01 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 14:00 Russell King
2004-06-01 16:46 ` Russell King [this message]
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=20040601174625.B31301@flint.arm.linux.org.uk \
--to=rmk+lkml@arm.linux.org.uk \
--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
all inboxes | Powered by JetHome®