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