提交 bbf6573e 编写于 作者: P Pavel Hrdina

conf: honor maxnames in nodeListDevices API

Introduced by commit <4ae9dbea>.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1528572Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 715b321d
......@@ -798,6 +798,9 @@ virNodeDeviceObjListGetNamesCallback(void *payload,
if (data->error)
return 0;
if (data->nnames >= data->maxnames)
return 0;
virObjectLock(obj);
def = obj->def;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册