mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 23:17:43 -07:00
net/virtio: Fix failover_replug_primary() return value regression
Commit150ab54aa6"net/virtio: fix re-plugging of primary device" fixed failover_replug_primary() to return false on failure. Commit5a0948d36c"net/virtio: Fix failover error handling crash bugs" broke it again for hotplug_handler_plug() failure. Unbreak it. Commit5a0948d36cFixes:5a0948d36cCc: Jens Freimann <jfreimann@redhat.com> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Jens Freimann <jfreimann@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20200630090351.1247703-2-armbru@redhat.com>
This commit is contained in:
parent
590090b4e6
commit
ca72efccbe
1 changed files with 1 additions and 1 deletions
|
|
@ -3129,7 +3129,7 @@ static bool failover_replug_primary(VirtIONet *n, Error **errp)
|
|||
if (err) {
|
||||
goto out;
|
||||
}
|
||||
hotplug_handler_plug(hotplug_ctrl, n->primary_dev, errp);
|
||||
hotplug_handler_plug(hotplug_ctrl, n->primary_dev, &err);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue