Revision c5954819 user-exec.c
b/user-exec.c | ||
---|---|---|
97 | 97 |
pc, address, is_write, *(unsigned long *)old_set); |
98 | 98 |
#endif |
99 | 99 |
/* XXX: locking issue */ |
100 |
if (is_write && page_unprotect(h2g(address), pc, puc)) { |
|
100 |
if (is_write && h2g_valid(address) |
|
101 |
&& page_unprotect(h2g(address), pc, puc)) { |
|
101 | 102 |
return 1; |
102 | 103 |
} |
103 | 104 |
|
Also available in: Unified diff