summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorJames Puthukattukaran <joejames70@gmail.com>2017-05-16 17:57:00 +0200
committerJes Sorensen <jsorensen@fb.com>2017-05-16 17:58:31 +0200
commita3476c9223e55ebb6063e7c5ee057647c70da0d2 (patch)
tree9780c1974a96ea71f8d07b383cc2a3145c9e3816 /super-ddf.c
parentMonitor: Fixup a pile of whitespace issues (diff)
downloadmdadm-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.c2
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) &&