From: Matthew Reimer <mreimer@vpop.net>
To: linux-mtd@lists.infradead.org
Subject: PATCH: make blkmtd work
Date: Sat, 06 Mar 2004 12:12:44 -0600 [thread overview]
Message-ID: <404A149C.5060702@vpop.net> (raw)
blkmtd wasn't working for me at all, oopsing because it tried to
dereference a NULL pointer. This patch fixes it:
--- blkmtd.c.orig 2004-03-06 11:58:30.000000000 -0600
+++ blkmtd.c 2004-03-06 11:58:45.000000000 -0600
@@ -664,12 +664,12 @@ static struct blkmtd_dev *add_device(cha
}
memset(dev, 0, sizeof(struct blkmtd_dev));
- atomic_set(&(dev->blkdev->bd_inode->i_mapping->truncate_count), 0);
if(!readonly) {
init_MUTEX(&dev->wrbuf_mutex);
}
dev->blkdev = bdev;
+ atomic_set(&(dev->blkdev->bd_inode->i_mapping->truncate_count), 0);
dev->mtd_info.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
/* Setup the MTD structure */
This patch makes it work for me. Does this look right? If so, how do I
go about getting it committed?
Matt
reply other threads:[~2004-03-06 18:12 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=404A149C.5060702@vpop.net \
--to=mreimer@vpop.net \
--cc=linux-mtd@lists.infradead.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