dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/mdadm-Uninitialized-variable-rdev.patch

2c1b57
From a3476c9223e55ebb6063e7c5ee057647c70da0d2 Mon Sep 17 00:00:00 2001
2c1b57
From: James Puthukattukaran <joejames70@gmail.com>
2c1b57
Date: Tue, 16 May 2017 11:57:00 -0400
2c1b57
Subject: [RHEL7.5 PATCH 140/169] mdadm: Uninitialized variable rdev
2c1b57
2c1b57
rdev is not initialized properly causing compiler complaint.
2c1b57
2c1b57
Signed-off-by: James Puthukattukaran <joejames70@gmail.com>
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 super-ddf.c | 2 +-
2c1b57
 1 file changed, 1 insertion(+), 1 deletion(-)
2c1b57
2c1b57
diff --git a/super-ddf.c b/super-ddf.c
2c1b57
index 9c82f4f..ac14017 100644
2c1b57
--- a/super-ddf.c
2c1b57
+++ b/super-ddf.c
2c1b57
@@ -3526,7 +3526,7 @@ static int validate_geometry_ddf_bvd(struct supertype *st,
2c1b57
 		return 1;
2c1b57
 	}
2c1b57
 	/* This device must be a member of the set */
2c1b57
-	if (!stat_is_blkdev(dev, NULL))
2c1b57
+	if (!stat_is_blkdev(dev, &rdev))
2c1b57
 		return 0;
2c1b57
 	for (dl = ddf->dlist ; dl ; dl = dl->next) {
2c1b57
 		if (dl->major == (int)major(rdev) &&
2c1b57
-- 
2c1b57
2.7.4
2c1b57