mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
235e510cfd
commit
542379f426
1 changed files with 1 additions and 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue