5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

Reset device only if has_fl_reset is defined

Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
This commit is contained in:
Kamil Trzciński 2014-06-29 21:41:37 +02:00 committed by Dietmar Maurer
parent cba2311f72
commit 8f3e88af00

View File

@ -3370,7 +3370,7 @@ sub vm_start {
die "can't unbind/bind to stub pci device '$pciid'\n" if !pci_dev_bind_to_stub($info);
}
die "can't reset pci device '$pciid'\n" if !pci_dev_reset($info);
die "can't reset pci device '$pciid'\n" if $info->{has_fl_reset} and !pci_dev_reset($info);
}
}