virtio: check virtio_load return code
authorOrit Wassermann <owasserm@redhat.com>
Wed, 16 May 2012 10:21:35 +0000 (12:21 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 May 2012 20:40:50 +0000 (15:40 -0500)
commit2a633c461e96cb9a856292c46917653bd43959c8
tree2907c129ba38047391cea14d072594f866479450
parenta6c5c84ae25bc68f22725f77d6d77c98af5c4f9e
virtio: check virtio_load return code

Otherwise we crash on error.

Signed-off-by: Ulrich Obergfell <uobergfe@redhat.com>
Signed-off-by: Orit Wassermann <owasserm@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio-balloon.c
hw/virtio-blk.c
hw/virtio-net.c
hw/virtio-scsi.c
hw/virtio-serial-bus.c