From d5514210b86c57db0277ce862a8081649ef26ef2 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 12 May 2006 19:23:21 +0000 Subject: 2006-05-12 Stefan Siegl * linux/dev/glue/kmem.c (vfree): Panic if `vmalloc_list_lookup' did NOT succeed. --- linux/dev/glue/kmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') 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); -- cgit v1.2.3