diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | linux/dev/glue/kmem.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-05-12 Stefan Siegl <stesie@brokenpipe.de> + + * linux/dev/glue/kmem.c (vfree): Panic if `vmalloc_list_lookup' did + NOT succeed. + 2006-05-08 Thomas Schwinge <tschwinge@gnu.org> * DEVELOPMENT: Document Samuel's patch. 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); |