mirror of https://gitee.com/openkylin/libvirt.git
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 <mkletzan@redhat.com>
This commit is contained in:
parent
44bf83e313
commit
ae612493ff
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue