qdev: Fix crash on -device '?=x'
PATCH 1/1 qdev: Fix crash on -device '?=x'
Spotted by Coverity.
Signed-off-by Markus Armbruster <[email protected]>
--- hw/qdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/qdev.c +1 -1
@@ -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
Stefan Hajnoczi
AppliedQuoted 6 lines · Markus Armbruster
Spotted by Coverity.
Signed-off-by Markus Armbruster <[email protected]>--- hw/qdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
Stefan