pci-hotplug-old: avoid losing error message
authorGonglei <arei.gonglei@huawei.com>
Thu, 18 Sep 2014 13:06:17 +0000 (21:06 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Sep 2014 16:44:04 +0000 (19:44 +0300)
commit22b80e85ff7d6150beefe06bb43d9b14ac4deb05
tree11696663f33e75a44f6ac0d07f4dbdb34410357f
parent45363e46aeebfc99753389649eac7c7fc22bfe52
pci-hotplug-old: avoid losing error message

When scsi_bus_legacy_add_drive() produces an error,
we will lose the error message. Using error_report
to report it.

Cc: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci-hotplug-old.c