From: James Puthukattukaran Date: Tue, 16 May 2017 15:57:00 +0000 (-0400) Subject: mdadm: Uninitialized variable rdev X-Git-Tag: mdadm-4.1-rc1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3476c9223e55ebb6063e7c5ee057647c70da0d2;p=thirdparty%2Fmdadm.git mdadm: Uninitialized variable rdev rdev is not initialized properly causing compiler complaint. Signed-off-by: James Puthukattukaran Signed-off-by: Jes Sorensen --- 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) &&