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>
This commit is contained in:
James Puthukattukaran 2017-05-16 11:57:00 -04:00 committed by Jes Sorensen
parent f566ef45d3
commit a3476c9223
1 changed files with 1 additions and 1 deletions

View 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) &&