summary refs log tree commit diff stats
path: root/scripts/qapi/common.py
diff options
context:
space:
mode:
authorFei Li <fli@suse.com>2019-01-13 22:08:45 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2019-01-23 15:02:07 +0000
commit78524330fdb28ebd9606970b10dc835ca308a03d (patch)
tree3a93b1c3c8a115d71100367f7d9a344ec862c729 /scripts/qapi/common.py
parent9f33051abce238ab43a23125e237aac8b0931b88 (diff)
downloadfocaccia-qemu-78524330fdb28ebd9606970b10dc835ca308a03d.tar.gz
focaccia-qemu-78524330fdb28ebd9606970b10dc835ca308a03d.zip
Fix segmentation fault when qemu_signal_init fails
When qemu_signal_init() fails in qemu_init_main_loop(), we return
without setting an error.  Its callers crash then when they try to
report the error with error_report_err().

To avoid such segmentation fault, add a new Error parameter to make
the call trace to propagate the err to the final caller.

Fixes: 2f78e491d7b46542158ce0b8132ee4e05bc0ade4
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Fei Li <fli@suse.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190113140849.38339-2-lifei1214@126.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions