* [PATCH] mdadm: Uninitialized variable rdev
@ 2017-12-05 21:20 James Puthukattukaran
0 siblings, 0 replies; only message in thread
From: James Puthukattukaran @ 2017-12-05 21:20 UTC (permalink / raw)
To: linux-raid
mdadm: Uninitialized variable rdev
rdev is not initialized properly causing compiler complaint.
Signed-off-by: James Puthukattukaran <james.puthukattukaran@oracle.com>
diff --git a/super-ddf.c b/super-ddf.c
index 9c82f4f..ac14017 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) &&
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-05 21:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 21:20 [PATCH] mdadm: Uninitialized variable rdev James Puthukattukaran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).