From: Jes Sorensen <jes.sorensen@gmail.com>
To: James John <joejames70@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH] mdadm: Unitialized variable rdev
Date: Mon, 15 May 2017 17:22:24 -0400 [thread overview]
Message-ID: <bf542fb4-42d3-10b8-c770-ba98e45aff87@gmail.com> (raw)
In-Reply-To: <CA+wAi7cy6bMvv+uXWry=05E9biq0chUO2Wt9d91P6hQGZTVuMg@mail.gmail.com>
On 05/11/2017 05:15 PM, James John wrote:
> mdadm: Uninitialized variable rdev
>
> rdev is not initialized properly causing compiler complaint.
>
> Signed-off-by: James Puthukattukaran <joejames70@gmail.com>
>
> diff --git a/super-ddf.c b/super-ddf.c
> index 9c82f4f..ac14017 100644
> --- a/super-ddf.c
> +++ b/super-ddf.c
> @@ -3526,7 +3526,7 @@ static int validate_geometry_ddf_bvd(
> struct supertype *st,
> return 1;
> }
> /* This device must be a member of the set */
> - if (!stat_is_blkdev(dev, NULL))
> + if (!stat_is_blkdev(dev, &rdev))
> return 0;
> for (dl = ddf->dlist ; dl ; dl = dl->next) {
> if (dl->major == (int)major(rdev) &&
>
Hi James,
This looks correct, but unfortunately you are using a broken mail client
which replaced the tabs with spaces, and also included HTML junk.
Would you mind sending me a version that works, and I'll be happy to
apply it.
Thanks,
Jes
next parent reply other threads:[~2017-05-15 21:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+wAi7cy6bMvv+uXWry=05E9biq0chUO2Wt9d91P6hQGZTVuMg@mail.gmail.com>
2017-05-15 21:22 ` Jes Sorensen [this message]
2017-05-16 3:02 ` [PATCH] mdadm: Unitialized variable rdev Zhilong Liu
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=bf542fb4-42d3-10b8-c770-ba98e45aff87@gmail.com \
--to=jes.sorensen@gmail.com \
--cc=joejames70@gmail.com \
--cc=linux-raid@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