linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Clements <paul.clements@steeleye.com>
To: neilb@cse.unsw.edu.au, linux-raid@vger.kernel.org
Subject: [PATCH] max_dev bug in super_1_sync
Date: Mon, 21 Feb 2005 14:31:39 -0500	[thread overview]
Message-ID: <421A371B.7040802@steeleye.com> (raw)

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

                 reply	other threads:[~2005-02-21 19:31 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=421A371B.7040802@steeleye.com \
    --to=paul.clements@steeleye.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@cse.unsw.edu.au \
    /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;
as well as URLs for NNTP newsgroup(s).