]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: check port range even for USB hubs
authorJán Tomko <jtomko@redhat.com>
Mon, 30 Jan 2017 14:56:10 +0000 (15:56 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 13 Feb 2017 12:08:36 +0000 (13:08 +0100)
commit4a7773f7eaedc4e07f6c8d489b372fc8092402d5
tree933ad8f10d9f40e3517b8fe1c3e049ad4254fcf8
parent384504f7ba5f5c885a642e94b123483a5534e873
conf: check port range even for USB hubs

Move the range check introduced by commit 2650d5e into
virDomainUSBAddressFindPort. That way both virDomainUSBAddressRelease
and virDomainUSBAddressSetAddHub can benefit from it.

Reported-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_addr.c