mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
conf: honor maxnames in nodeListDevices API
Introduced by commit <4ae9dbea99c>. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1528572 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
715b321da1
commit
bbf6573e94
@ -798,6 +798,9 @@ virNodeDeviceObjListGetNamesCallback(void *payload,
|
||||
if (data->error)
|
||||
return 0;
|
||||
|
||||
if (data->nnames >= data->maxnames)
|
||||
return 0;
|
||||
|
||||
virObjectLock(obj);
|
||||
def = obj->def;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user