|
|
a41c76 |
From 60d5a8463c380b005f16698bca7b38c11b122e03 Mon Sep 17 00:00:00 2001
|
|
|
a41c76 |
Message-Id: <60d5a8463c380b005f16698bca7b38c11b122e03@dist-git>
|
|
|
a41c76 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
a41c76 |
Date: Tue, 17 Mar 2020 17:12:45 +0100
|
|
|
a41c76 |
Subject: [PATCH] qemuBlockBitmapsHandleCommitFinish: Use proper variable to
|
|
|
a41c76 |
iterate
|
|
|
a41c76 |
MIME-Version: 1.0
|
|
|
a41c76 |
Content-Type: text/plain; charset=UTF-8
|
|
|
a41c76 |
Content-Transfer-Encoding: 8bit
|
|
|
a41c76 |
|
|
|
a41c76 |
The function repeatedly checked the first element rather than iterating
|
|
|
a41c76 |
through the array.
|
|
|
a41c76 |
|
|
|
a41c76 |
Reported-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
a41c76 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
a41c76 |
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
a41c76 |
(cherry picked from commit 7a16318855811ac4ae55d30b77969528099fd180)
|
|
|
a41c76 |
https://bugzilla.redhat.com/show_bug.cgi?id=1799013
|
|
|
a41c76 |
Message-Id: <25addb80a3899e5789c32aecab8184066e80cbd0.1584461519.git.pkrempa@redhat.com>
|
|
|
a41c76 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
a41c76 |
---
|
|
|
a41c76 |
src/qemu/qemu_block.c | 2 +-
|
|
|
a41c76 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a41c76 |
|
|
|
a41c76 |
diff --git a/src/qemu/qemu_block.c b/src/qemu/qemu_block.c
|
|
|
a41c76 |
index dad3e2317f..73cb5ba4bc 100644
|
|
|
a41c76 |
--- a/src/qemu/qemu_block.c
|
|
|
a41c76 |
+++ b/src/qemu/qemu_block.c
|
|
|
a41c76 |
@@ -3175,7 +3175,7 @@ qemuBlockBitmapsHandleCommitFinish(virStorageSourcePtr topsrc,
|
|
|
a41c76 |
char **disabledbitmaps;
|
|
|
a41c76 |
|
|
|
a41c76 |
for (disabledbitmaps = disabledBitmapsBase; *disabledbitmaps; disabledbitmaps++) {
|
|
|
a41c76 |
- if (STREQ(*disabledBitmapsBase, bitmap->name)) {
|
|
|
a41c76 |
+ if (STREQ(*disabledbitmaps, bitmap->name)) {
|
|
|
a41c76 |
bitmapdata = g_new0(struct qemuBlockBitmapsHandleCommitData, 1);
|
|
|
a41c76 |
|
|
|
a41c76 |
bitmapdata->create = false;
|
|
|
a41c76 |
--
|
|
|
a41c76 |
2.25.1
|
|
|
a41c76 |
|