mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-01 02:34:45 +00:00
kvm tools: Use correct subsys id in virtio-pci
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
This commit is contained in:
+1
-1
@@ -302,7 +302,7 @@ int virtio_pci__init(struct kvm *kvm, struct virtio_pci *vpci, void *dev,
|
||||
vpci->pci_hdr.msix.pba_offset = 3; /* Use BAR 3 */
|
||||
vpci->config_vector = 0;
|
||||
|
||||
if (irq__register_device(VIRTIO_ID_RNG, &ndev, &pin, &line) < 0)
|
||||
if (irq__register_device(subsys_id, &ndev, &pin, &line) < 0)
|
||||
return -1;
|
||||
|
||||
vpci->pci_hdr.irq_pin = pin;
|
||||
|
||||
Reference in New Issue
Block a user