diff options
author | James Puthukattukaran <joejames70@gmail.com> | 2017-05-16 17:57:00 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 17:58:31 +0200 |
commit | a3476c9223e55ebb6063e7c5ee057647c70da0d2 (patch) | |
tree | 9780c1974a96ea71f8d07b383cc2a3145c9e3816 /super-ddf.c | |
parent | Monitor: Fixup a pile of whitespace issues (diff) | |
download | mdadm-a3476c9223e55ebb6063e7c5ee057647c70da0d2.tar.xz mdadm-a3476c9223e55ebb6063e7c5ee057647c70da0d2.zip |
mdadm: Uninitialized variable rdev
rdev is not initialized properly causing compiler complaint.
Signed-off-by: James Puthukattukaran <joejames70@gmail.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index 9c82f4fa..ac14017b 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) && |