mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05: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:
1 parent
715b321da1
commit
bbf6573e94
1 file changed
+3
@@ -798,6 +798,9 @@ virNodeDeviceObjListGetNamesCallback(void *payload,
|
||||
if (data->error)
|
||||
return 0;
|
||||
|
||||
if (data->nnames >= data->maxnames)
|
||||
return 0;
|
||||
|
||||
virObjectLock(obj);
|
||||
def = obj->def;
|
||||
|
||||
|
||||
Reference in new issue
Block a user