Skip to content

Commit

Permalink
tests: virtio-9p: set DRIVER_OK before using the device
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Kurz <groug@kaod.org>
  • Loading branch information
gkurz committed Jan 8, 2018
1 parent 65b70fc commit d8803b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/virtio-9p-test.c
Expand Up @@ -75,6 +75,9 @@ static QVirtIO9P *qvirtio_9p_pci_start(void)
qvirtio_set_driver(v9p->dev);

v9p->vq = qvirtqueue_setup(v9p->dev, v9p->qs->alloc, 0);

qvirtio_set_driver_ok(v9p->dev);

return v9p;
}

Expand Down

0 comments on commit d8803b1

Please sign in to comment.