summaryrefslogtreecommitdiffstats
path: root/hw/scsi/virtio-scsi.c
diff options
context:
space:
mode:
authorCao jin2016-01-06 10:37:46 +0100
committerPaolo Bonzini2016-01-15 18:58:01 +0100
commite1dc68155cafabfd6a065391f7826d5d0992b46e (patch)
tree63d8cf13b5ee18aefcb71d44c4aa1a047a347394 /hw/scsi/virtio-scsi.c
parentiscsi: send readcapacity10 when readcapacity16 failed (diff)
downloadqemu-e1dc68155cafabfd6a065391f7826d5d0992b46e.tar.gz
qemu-e1dc68155cafabfd6a065391f7826d5d0992b46e.tar.xz
qemu-e1dc68155cafabfd6a065391f7826d5d0992b46e.zip
SCSI device: fix to incomplete QOMify
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <1452073066-28319-1-git-send-email-caoj.fnst@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi/virtio-scsi.c')
-rw-r--r--hw/scsi/virtio-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c
index 3a4f520fbb..607593cc96 100644
--- a/hw/scsi/virtio-scsi.c
+++ b/hw/scsi/virtio-scsi.c
@@ -352,7 +352,7 @@ static int virtio_scsi_do_tmf(VirtIOSCSI *s, VirtIOSCSIReq *req)
target = req->req.tmf.lun[1];
s->resetting++;
QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) {
- d = DO_UPCAST(SCSIDevice, qdev, kid->child);
+ d = SCSI_DEVICE(kid->child);
if (d->channel == 0 && d->id == target) {
qdev_reset_all(&d->qdev);
}