]> git.proxmox.com Git - qemu.git/blobdiff - user-exec.c
Update version for 1.1.0-rc4 release
[qemu.git] / user-exec.c
index be6bc4f64c9444c5aaeb5c0c897198b07fe026a9..d8c2ad9f2fdac97508afd026a0f136fdb01a4d03 100644 (file)
@@ -97,7 +97,8 @@ static inline int handle_cpu_signal(uintptr_t pc, unsigned long address,
                 pc, address, is_write, *(unsigned long *)old_set);
 #endif
     /* XXX: locking issue */
-    if (is_write && page_unprotect(h2g(address), pc, puc)) {
+    if (is_write && h2g_valid(address)
+        && page_unprotect(h2g(address), pc, puc)) {
         return 1;
     }