From ae612493ffbba8980a31800e260cc5b6b7f456e8 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Wed, 21 Sep 2016 15:14:46 +0200 Subject: [PATCH] conf: Fix virDomainShmemDefFind 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 --- 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 44752b948d..78d9396ba8 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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)