]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Fix virDomainShmemDefFind
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 21 Sep 2016 13:14:46 +0000 (15:14 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 12 Oct 2016 11:08:28 +0000 (13:08 +0200)
Due to the switch of parameters in a call to virDomainShmemDefEquals()
no device was found when looking for device with all the information
except address.  Also fix the indentation.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c

index 44752b948dea492272a6470613cb6d118ba2f65b..78d9396ba88b34340c9fe4ef1c8dda0231d0faa7 100644 (file)
@@ -14897,8 +14897,8 @@ virDomainShmemDefFind(virDomainDefPtr def,
     size_t i;
 
     for (i = 0; i < def->nshmems; i++) {
-         if (virDomainShmemDefEquals(def->shmems[i], shmem))
-             break;
+        if (virDomainShmemDefEquals(shmem, def->shmems[i]))
+            break;
     }
 
     if (i < def->nshmems)