summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/db_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
index bd43b1f..29f03c9 100644
--- a/i386/i386/db_interface.c
+++ b/i386/i386/db_interface.c
@@ -311,7 +311,7 @@ db_read_bytes(
unsigned kern_addr;
src = (char *)addr;
- if (addr >= VM_MIN_KERNEL_ADDRESS || task == TASK_NULL) {
+ if ((addr >= VM_MIN_KERNEL_ADDRESS && addr < VM_MAX_KERNEL_ADDRESS) || task == TASK_NULL) {
if (task == TASK_NULL)
task = db_current_task();
while (--size >= 0) {