summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFam Zheng2017-03-17 13:32:42 +0100
committerMichael S. Tsirkin2017-03-22 16:54:32 +0100
commita77690c41da67d85bab1e784a9f24f18bc63dbd9 (patch)
tree5a69239afea638831aa8d7dd056e4658fa93ce8a /include
parentUpdate version for v2.9.0-rc1 release (diff)
downloadqemu-a77690c41da67d85bab1e784a9f24f18bc63dbd9.tar.gz
qemu-a77690c41da67d85bab1e784a9f24f18bc63dbd9.tar.xz
qemu-a77690c41da67d85bab1e784a9f24f18bc63dbd9.zip
virtio: Fix error handling in virtio_bus_device_plugged
For one thing we shouldn't continue if an error happened, for the other two steps failing can cause an abort() in error_setg because we reuse the same errp blindly. Add error handling checks to fix both issues. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions