diff options
author | Cao jin | 2016-01-06 10:37:46 +0100 |
---|---|---|
committer | Paolo Bonzini | 2016-01-15 18:58:01 +0100 |
commit | e1dc68155cafabfd6a065391f7826d5d0992b46e (patch) | |
tree | 63d8cf13b5ee18aefcb71d44c4aa1a047a347394 /hw/scsi/virtio-scsi.c | |
parent | iscsi: send readcapacity10 when readcapacity16 failed (diff) | |
download | qemu-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.c | 2 |
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); } |