diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-11-08 11:00:38 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-11-10 12:29:50 +0000 |
commit | 542379f42642179cea33571c2799ca6fd03bf452 (patch) | |
tree | b0a9167620ca097d8da63f7bc139119b7a82254a /hw/qdev.c | |
parent | 235e510cfddf2a5585f5f7ad5bcf65b6a4d7f221 (diff) | |
download | qemu-542379f42642179cea33571c2799ca6fd03bf452.zip qemu-542379f42642179cea33571c2799ca6fd03bf452.tar.gz qemu-542379f42642179cea33571c2799ca6fd03bf452.tar.bz2 |
qdev: Fix crash on -device '?=x'
Spotted by Coverity.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r-- | hw/qdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |