summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-05-12 19:23:21 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:37 +0200
commitd5514210b86c57db0277ce862a8081649ef26ef2 (patch)
tree84ac0abefe18093d6a94f3a0f84242a66bd8a0df /linux
parent155c14f0438cc2443126700d5874ca8f3fcce990 (diff)
2006-05-12 Stefan Siegl <stesie@brokenpipe.de>
* linux/dev/glue/kmem.c (vfree): Panic if `vmalloc_list_lookup' did NOT succeed.
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/glue/kmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c
index 3a9d260..9f0412f 100644
--- a/linux/dev/glue/kmem.c
+++ b/linux/dev/glue/kmem.c
@@ -550,7 +550,7 @@ vfree (void *addr)
struct vmalloc_struct *p;
p = vmalloc_list_lookup ((vm_offset_t) addr);
- if (p)
+ if (!p)
panic ("vmalloc_list_lookup failure");
kmem_free (kernel_map, addr, p->size);