Skip to contentSkip to conversation

qdev: Fix crash on -device '?=x'

PATCH Applied Markus Armbruster 2 participants 2 messages Nov 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qdev: Fix crash on -device '?=x'

Spotted by Coverity.

---
 hw/qdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/qdev.c +1 -1
index 50976dd..106407f 100644
@@ -186,7 +186,7 @@ int qdev_device_help(QemuOpts *opts)
         return 1;
     }
 
-    if (!qemu_opt_get(opts, "?")) {
+    if (!driver || !qemu_opt_get(opts, "?")) {
         return 0;
     }
 
Signature · 1 line
1.7.6.4