summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorDunrong Huang2012-07-23 18:42:20 +0200
committerStefan Hajnoczi2012-08-10 15:28:11 +0200
commitfb7c269ed694c103397c5fffbfcccd3e90aed23c (patch)
treedf70db387a83dbd0f44552d33eb67606c8404667 /hw
parenthandle device help before accelerator set up (diff)
downloadqemu-fb7c269ed694c103397c5fffbfcccd3e90aed23c.tar.gz
qemu-fb7c269ed694c103397c5fffbfcccd3e90aed23c.tar.xz
qemu-fb7c269ed694c103397c5fffbfcccd3e90aed23c.zip
vl.c: Exit QEMU early if no machine is found
We check whether the variable machine is NULL or not before accessing it. If machine is NULL, exit QEMU with an error, this can avoids a segfault error. Markus Armbruster <armbru@redhat.com> adds that the segfault can be reproduced as follows: $ qemu-system-xtensa -cpu help Signed-off-by: Dunrong Huang <riegamaths@gmail.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions