Fei Li 78524330fd 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>
2019-01-23 15:02:07 +00:00
..
2018-09-25 15:50:15 +02:00
2018-10-02 18:47:55 +02:00
2017-09-22 14:11:25 +02:00
2018-10-02 18:47:55 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2018-10-02 18:47:55 +02:00
2016-02-04 17:01:04 +00:00
2018-10-02 18:47:55 +02:00
2016-02-04 17:01:04 +00:00
2018-12-20 10:29:08 +01:00
2016-02-04 17:01:04 +00:00
2018-08-24 20:26:37 +02:00
2018-06-29 12:32:10 +02:00
2017-12-20 22:01:24 +08:00