From 4108d5de8016277c0627d728488fc8321da28a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 22 Jan 2007 16:57:47 +0000 Subject: [PATCH] Now checks if the address space pointer is NULL before dereferencing it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19905 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_debug.c b/src/system/kernel/arch/x86/arch_debug.c index f28feb0fdd..0fe23e3afc 100644 --- a/src/system/kernel/arch/x86/arch_debug.c +++ b/src/system/kernel/arch/x86/arch_debug.c @@ -104,7 +104,9 @@ print_stack_frame(struct thread *thread, addr_t eip, addr_t ebp, addr_t nextEbp) (void *)baseAddress, eip - baseAddress); } } else { - vm_area *area = vm_area_lookup(thread->team->address_space, eip); + vm_area *area = NULL; + if (thread->team->address_space != NULL) + area = vm_area_lookup(thread->team->address_space, eip); if (area != NULL) { kprintf(" %ld:%s@%p + %#lx\n", area->id, area->name, (void *)area->base, eip - area->base);