]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpus.c
usb: check device is not NULL before calling usb_ep_get()
[mirror_qemu.git] / cpus.c
diff --git a/cpus.c b/cpus.c
index b09b7027126183338463268f868b5dddf6a3e679..154daf57dcb02ab546ddc3ddafb833b240418158 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1778,7 +1778,7 @@ static void qemu_cpu_kick_thread(CPUState *cpu)
     }
     cpu->thread_kicked = true;
     err = pthread_kill(cpu->thread->thread, SIG_IPI);
-    if (err) {
+    if (err && err != ESRCH) {
         fprintf(stderr, "qemu:%s: %s", __func__, strerror(err));
         exit(1);
     }