* [PATCH] max_dev bug in super_1_sync
@ 2005-02-21 19:31 Paul Clements
0 siblings, 0 replies; only message in thread
From: Paul Clements @ 2005-02-21 19:31 UTC (permalink / raw)
To: neilb, linux-raid
[-- Attachment #1: Type: text/plain, Size: 130 bytes --]
Neil,
I don't know if you've seen this one yet, but it looks like there's a
small bug in super_1_sync. Patch attached.
--
Paul
[-- Attachment #2: md_max_dev_bug.diff --]
[-- Type: text/plain, Size: 473 bytes --]
--- linux-2.6.11-rc3-mm2-patch-all-write-mostly/drivers/md/md.c Mon Feb 21 12:23:32 2005
+++ linux-2.6.11-rc3-mm2-patch-all-write-mostly-max-dev-bug/drivers/md/md.c Mon Feb 21 14:22:21 2005
@@ -1018,7 +1018,7 @@ static void super_1_sync(mddev_t *mddev,
sb->max_dev = cpu_to_le32(max_dev);
for (i=0; i<max_dev;i++)
- sb->dev_roles[max_dev] = cpu_to_le16(0xfffe);
+ sb->dev_roles[i] = cpu_to_le16(0xfffe);
ITERATE_RDEV(mddev,rdev2,tmp) {
i = rdev2->desc_nr;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-21 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-21 19:31 [PATCH] max_dev bug in super_1_sync Paul Clements
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).