Skip to contentSkip to conversation

mdadm: Uninitialized variable rdev

PATCH New James Puthukattukaran 1 participant 1 message Dec 5, 2017 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mdadm: Uninitialized variable rdev

mdadm: Uninitialized variable rdev

rdev is not initialized properly causing compiler complaint.

super-ddf.c +0 -0
index 9c82f4f..ac14017 100644
@@ -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) &&