forked from pool/mdadm
35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
|
From a3476c9223e55ebb6063e7c5ee057647c70da0d2 Mon Sep 17 00:00:00 2001
|
||
|
From: James Puthukattukaran <joejames70@gmail.com>
|
||
|
Date: Tue, 16 May 2017 11:57:00 -0400
|
||
|
Subject: [PATCH] mdadm: Uninitialized variable rdev
|
||
|
Git-commit: a3476c9223e55ebb6063e7c5ee057647c70da0d2
|
||
|
Patch-mainline: mdadm-4.0+
|
||
|
References: bsc#1069165, bsc#1069167, bsc#1068030
|
||
|
|
||
|
rdev is not initialized properly causing compiler complaint.
|
||
|
|
||
|
Signed-off-by: James Puthukattukaran <joejames70@gmail.com>
|
||
|
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
||
|
Signed-off-by: Coly Li <colyli@suse.de>
|
||
|
|
||
|
---
|
||
|
super-ddf.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
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) &&
|
||
|
--
|
||
|
2.13.6
|
||
|
|