mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
qemu-usb: fix multiple device support
bus or device should be different (not both) when comparing a device to already present devices. Because of this the second USB device was marked as existent when the bus matched or the bus did not but the device number.
This commit is contained in:
parent
326deb14fe
commit
98e2f91036
@ -190,10 +190,10 @@ struct Dev_info
|
||||
bool operator != (Dev_info const &other) const
|
||||
{
|
||||
if (bus && dev)
|
||||
return bus != other.bus && dev != other.dev;
|
||||
return bus != other.bus || dev != other.dev;
|
||||
|
||||
if (vendor && product)
|
||||
return vendor != other.vendor && product != other.product;
|
||||
return vendor != other.vendor || product != other.product;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user