]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix virNodeDeviceListCaps always returns empty
authorJincheng Miao <jmiao@redhat.com>
Fri, 28 Mar 2014 23:13:01 +0000 (07:13 +0800)
committerJán Tomko <jtomko@redhat.com>
Sat, 29 Mar 2014 05:51:10 +0000 (06:51 +0100)
commit15a173fc13b4a16707a0d88b17a8a631791a4083
tree773b05471d95567b08641492d74a805b28d477eb
parent63f22dc80f14ca0d4a623838ec415b406d7e693c
Fix virNodeDeviceListCaps always returns empty

virNodeDeviceListCaps will always return empty for a pci nodedevice,
actually it should return 'pci'.

It is because the loop variable ncaps isn't increased.

Introduced by commit be2636f.

https://bugzilla.redhat.com/show_bug.cgi?id=1081932

Signed-off-by: Jincheng Miao <jmiao@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/node_device/node_device_driver.c