neil / rpms / libblockdev

Forked from rpms/libblockdev a year ago
Clone

Blame SOURCES/0009-mdraid-Fix-use-after-free.patch

1c784e
From 658c07e92eff05d99a65f112161ea82da842cd2d Mon Sep 17 00:00:00 2001
1c784e
From: Vojtech Trefny <vtrefny@redhat.com>
1c784e
Date: Fri, 25 Sep 2020 14:41:20 +0200
1c784e
Subject: [PATCH] mdraid: Fix use after free
1c784e
1c784e
Another copy-paste error.
1c784e
---
1c784e
 src/plugins/mdraid.c | 3 +--
1c784e
 1 file changed, 1 insertion(+), 2 deletions(-)
1c784e
1c784e
diff --git a/src/plugins/mdraid.c b/src/plugins/mdraid.c
1c784e
index eaf659d3..11067c95 100644
1c784e
--- a/src/plugins/mdraid.c
1c784e
+++ b/src/plugins/mdraid.c
1c784e
@@ -1028,8 +1028,7 @@ BDMDExamineData* bd_md_examine (const gchar *device, GError **error) {
1c784e
             value++;
1c784e
             ret->uuid = bd_md_canonicalize_uuid (value, error);
1c784e
             if (!ret->uuid) {
1c784e
-                g_prefix_error (error, "Failed to canonicalize MD UUID '%s': ", orig_data);
1c784e
-                g_free (orig_data);
1c784e
+                g_prefix_error (error, "Failed to canonicalize MD UUID '%s': ", value);
1c784e
                 bd_md_examine_data_free (ret);
1c784e
                 g_strfreev (output_fields);
1c784e
                 return NULL;
1c784e
-- 
1c784e
2.37.1
1c784e