From 2391ca55684910a7a8c9b75137fb0dd3f5237433 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 13 Sep 2008 14:27:31 +0000 Subject: [PATCH] CID 56: Fix the wrong NULL check. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27478 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_vm_translation_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_vm_translation_map.cpp b/src/system/kernel/arch/x86/arch_vm_translation_map.cpp index 47813057c4..f8d2e8f2d6 100644 --- a/src/system/kernel/arch/x86/arch_vm_translation_map.cpp +++ b/src/system/kernel/arch/x86/arch_vm_translation_map.cpp @@ -783,7 +783,7 @@ arch_vm_translation_map_init_map(vm_translation_map *map, bool kernel) recursive_lock_init(&map->lock, "translation map"); map->arch_data = (vm_translation_map_arch_info *)malloc(sizeof(vm_translation_map_arch_info)); - if (map == NULL) { + if (map->arch_data == NULL) { recursive_lock_destroy(&map->lock); return B_NO_MEMORY; }