]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
migration: Fix operator type stable-4.16 staging-4.16 qemu-xen-4.16.5
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 6 Apr 2022 10:25:15 +0000 (11:25 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 17 Jul 2023 11:09:08 +0000 (12:09 +0100)
Clang spotted an & that should have been an &&; fix it.

Reported by: David Binderman / https://gitlab.com/dcb
Fixes: 65dacaa04fa ("migration: introduce save_normal_page()")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/963
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20220406102515.96320-1-dgilbert@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
(cherry picked from commit f912ec5b2d65644116ff496b58d7c9145c19e4c0)
(cherry picked from commit b746458e1ce1bec85e58b458386f8b7a0bedfaa6)

migration/ram.c

index 7a43bfd7afcbd55b8c7a06731ca0c5a21cb0f1df..541f6b6b4118882f706f3d52b3290e1fd7efced2 100644 (file)
@@ -1155,7 +1155,7 @@ static int save_normal_page(RAMState *rs, RAMBlock *block, ram_addr_t offset,
                                                  offset | RAM_SAVE_FLAG_PAGE);
     if (async) {
         qemu_put_buffer_async(rs->f, buf, TARGET_PAGE_SIZE,
-                              migrate_release_ram() &
+                              migrate_release_ram() &&
                               migration_in_postcopy());
     } else {
         qemu_put_buffer(rs->f, buf, TARGET_PAGE_SIZE);