diff options
Diffstat (limited to 'hw/virtio-blk.c')
-rw-r--r-- | hw/virtio-blk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 663edcd6dc..e6f8875d00 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -669,7 +669,6 @@ static int virtio_blk_device_init(VirtIODevice *vdev) #endif s->change = qemu_add_vm_change_state_handler(virtio_blk_dma_restart_cb, s); - s->qdev = qdev; register_savevm(qdev, "virtio-blk", virtio_blk_id++, 2, virtio_blk_save, virtio_blk_load, s); bdrv_set_dev_ops(s->bs, &virtio_block_ops, s); @@ -690,7 +689,7 @@ static int virtio_blk_device_exit(DeviceState *dev) s->dataplane = NULL; #endif qemu_del_vm_change_state_handler(s->change); - unregister_savevm(s->qdev, "virtio-blk", s); + unregister_savevm(dev, "virtio-blk", s); blockdev_mark_auto_del(s->bs); virtio_common_cleanup(vdev); return 0; |