projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acfc484
)
virtio-gpu: fix ui idx check
author
Marc-André Lureau
<marcandre.lureau@redhat.com>
Thu, 19 May 2016 10:26:00 +0000
(12:26 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 23 May 2016 11:30:03 +0000
(13:30 +0200)
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
patch
|
blob
|
history
diff --git
a/hw/display/virtio-gpu.c
b/hw/display/virtio-gpu.c
index bc10d5ddc07ee09d57759c9e61ce5789c6dd6aac..f3b0f1419ed4a28e0dd74b60bbd4a66b10e4255d 100644
(file)
--- a/
hw/display/virtio-gpu.c
+++ b/
hw/display/virtio-gpu.c
@@
-879,7
+879,7
@@
static int virtio_gpu_ui_info(void *opaque, uint32_t idx, QemuUIInfo *info)
{
VirtIOGPU *g = opaque;
- if (idx > g->conf.max_outputs) {
+ if (idx >
=
g->conf.max_outputs) {
return -1;
}