26 lines
899 B
Diff
26 lines
899 B
Diff
|
From 8d26fe554dc057566b722b895aa48092ea0f2f64 Mon Sep 17 00:00:00 2001
|
||
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
||
|
Date: Fri, 25 Sep 2020 14:26:57 +0200
|
||
|
Subject: [PATCH] mdraid: Fix copy-paste error when checking return value
|
||
|
|
||
|
---
|
||
|
src/plugins/mdraid.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/plugins/mdraid.c b/src/plugins/mdraid.c
|
||
|
index 24f01bcb..eaf659d3 100644
|
||
|
--- a/src/plugins/mdraid.c
|
||
|
+++ b/src/plugins/mdraid.c
|
||
|
@@ -995,7 +995,7 @@ BDMDExamineData* bd_md_examine (const gchar *device, GError **error) {
|
||
|
orig_data = ret->dev_uuid;
|
||
|
if (orig_data) {
|
||
|
ret->dev_uuid = bd_md_canonicalize_uuid (orig_data, error);
|
||
|
- if (!ret->uuid) {
|
||
|
+ if (!ret->dev_uuid) {
|
||
|
g_prefix_error (error, "Failed to canonicalize MD UUID '%s': ", orig_data);
|
||
|
g_free (orig_data);
|
||
|
bd_md_examine_data_free (ret);
|
||
|
--
|
||
|
2.37.1
|
||
|
|