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