]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Really fix crash in tunnelled migration
authorJiri Denemark <jdenemar@redhat.com>
Thu, 20 Nov 2014 12:44:18 +0000 (13:44 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 20 Nov 2014 12:51:08 +0000 (13:51 +0100)
Oops, I forgot to squash one more instance of the same check in the
previous commit (v1.2.10-144-g52691f9).

https://bugzilla.redhat.com/show_bug.cgi?id=1147331
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c

index 89313dff1ab0e2d86b9e7dc92649852c87d9793e..a1b145826e16f5b9cc69c1fe1bc610c10a9497a8 100644 (file)
@@ -2757,7 +2757,7 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
                                     QEMU_ASYNC_JOB_MIGRATION_IN) < 0)
         goto stop;
 
-    if (STREQ(protocol, "rdma") &&
+    if (STREQ_NULLABLE(protocol, "rdma") &&
         virProcessSetMaxMemLock(vm->pid, vm->def->mem.hard_limit << 10) < 0) {
         goto stop;
     }