virtio-gpu: fix ui idx check
commit6b860806c0dd881373ead661c0f3499eca2c3995
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 19 May 2016 10:26:00 +0000 (19 12:26 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 23 May 2016 11:30:03 +0000 (23 13:30 +0200)
tree8882cd5456590affcf979a93c965ef7b369cb55a
parentacfc4846508a02cc4c83aa27799fd74ac280bdb2
virtio-gpu: fix ui idx check

Fix off-by-one value check (0 is the first scanout).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1463653560-26958-7-git-send-email-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu.c