]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm: Uninitialized variable rdev
authorJames Puthukattukaran <joejames70@gmail.com>
Tue, 16 May 2017 15:57:00 +0000 (11:57 -0400)
committerJes Sorensen <jsorensen@fb.com>
Tue, 16 May 2017 15:58:31 +0000 (11:58 -0400)
rdev is not initialized properly causing compiler complaint.

Signed-off-by: James Puthukattukaran <joejames70@gmail.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-ddf.c

index 9c82f4fa9bf2a94519bb1dae1db6cd18d9b1f494..ac14017bf9512b21fb6ddbc3ec48d34a958dd1c3 100644 (file)
@@ -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) &&