qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 1/1] spice: monitors_config: check pointer before der


From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 1/1] spice: monitors_config: check pointer before dereferencing
Date: Mon, 7 Apr 2014 12:21:11 +0200

Reported-by: Fabio Fantoni <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
 ui/spice-display.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/spice-display.c b/ui/spice-display.c
index e28698c..ce6b220 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -549,6 +549,10 @@ static int interface_client_monitors_config(QXLInstance 
*sin,
     QemuUIInfo info;
     int rc;
 
+    if (!mc) {
+        return 1;
+    }
+
     /*
      * FIXME: multihead is tricky due to the way
      * spice has multihead implemented.
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]