[PATCH 1/7] conf: Fix virDomainShmemDefFind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index a70be319891e..0ddfef89e762 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -14814,8 +14814,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)
-- 
2.10.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]