Hi,

> +     if (vgdev->num_scanouts) {
> +             ret = virtio_gpu_modeset_init(vgdev);

The call to virtio_gpu_modeset_fini() in the unregister
code path needs this too.

Otherwise the patch looks good to me, so with that fixed:
Acked-by: Gerd Hoffmann <kra...@redhat.com>

take care,
  Gerd

Reply via email to