From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Praveen Srinivasan <praveens@stanford.edu>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org,
alan@lxorguk.ukuu.org.uk, mingo@redhat.com
Subject: Re: [PATCH] md.c - null ptr fixes for 2.4.4
Date: Thu, 24 May 2001 03:52:19 -0400 [thread overview]
Message-ID: <3B0CBDB3.3E062D3A@mandrakesoft.com> (raw)
In-Reply-To: <200105240732.f4O7WLH23332@smtp2.Stanford.EDU>
Praveen Srinivasan wrote:
> @@ -3773,7 +3774,12 @@
> ainfo.spare_disks = 0;
> ainfo.layout = 0;
> ainfo.chunk_size = md_setup_args.chunk[minor];
> - err = set_array_info(mddev, &ainfo);
> + if(mddev==NULL){
> + err=1;
> + }
> + else {
> + err = set_array_info(mddev, &ainfo);
> + }
> for (i = 0; !err && (dev = md_setup_args.devices[minor][i]); i++) {
> dinfo.number = i;
> dinfo.raid_disk = i;
> @@ -3797,9 +3803,12 @@
> if (!err)
> err = do_md_run(mddev);
> if (err) {
> - mddev->sb_dirty = 0;
> - do_md_stop(mddev, 0);
> - printk("md: starting md%d failed\n", minor);
> + if(mddev !=NULL){
> + mddev->sb_dirty = 0;
> + do_md_stop(mddev, 0);
> + }
> +
> + printk("md: starting md%d failed\n", minor);
coding style of changes totally different from surrounding code, and
Documentation/CodingStyle
ditto for other patches... i didn't check all, only several
--
Jeff Garzik | "Are you the police?"
Building 1024 | "No, ma'am. We're musicians."
MandrakeSoft |
next prev parent reply other threads:[~2001-05-24 7:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-24 7:33 [PATCH] md.c - null ptr fixes for 2.4.4 Praveen Srinivasan
2001-05-24 7:52 ` Jeff Garzik [this message]
2001-05-24 10:32 ` Neil Brown
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=3B0CBDB3.3E062D3A@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=praveens@stanford.edu \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.