Re: [Qemu-devel] [PATCH RFC 2/5] qemu_thread_join: fix segmentation fault

2018-11-30 Thread Fei Li
On 11/29/2018 10:32 PM, Philippe Mathieu-Daudé wrote: Hi Fei, On 28/11/18 11:33, Fei Li wrote: To avoid the segmentation fault in qemu_thread_join(), just directly return when the QemuThread *thread failed to be created in either qemu-thread-posix.c or qemu-thread-win32.c. Signed-off-by: Fe

Re: [Qemu-devel] [PATCH RFC 2/5] qemu_thread_join: fix segmentation fault

2018-11-29 Thread Philippe Mathieu-Daudé
Hi Fei, On 28/11/18 11:33, Fei Li wrote: > To avoid the segmentation fault in qemu_thread_join(), just directly > return when the QemuThread *thread failed to be created in either > qemu-thread-posix.c or qemu-thread-win32.c. > > Signed-off-by: Fei Li > Reviewed-by: Fam Zheng > --- > util/qemu

[Qemu-devel] [PATCH RFC 2/5] qemu_thread_join: fix segmentation fault

2018-11-28 Thread Fei Li
To avoid the segmentation fault in qemu_thread_join(), just directly return when the QemuThread *thread failed to be created in either qemu-thread-posix.c or qemu-thread-win32.c. Signed-off-by: Fei Li Reviewed-by: Fam Zheng --- util/qemu-thread-posix.c | 3 +++ util/qemu-thread-win32.c | 2 +-