summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--linux/dev/glue/kmem.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 32dcb89..2457dd0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-04-25 Thomas Schwinge <tschwinge@gnu.org>
+ * linux/dev/glue/kmem.c (vmalloc_list_remove): Cast first argument in
+ the `kfree' call to what is expected.
+
* linux/pcmcia-cs/glue/ds.c (kmalloc, kfree): Call `linux_kmalloc',
respective `linux_kfree' instead.
diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c
index 9f0412f..908d086 100644
--- a/linux/dev/glue/kmem.c
+++ b/linux/dev/glue/kmem.c
@@ -525,7 +525,7 @@ vmalloc_list_remove (struct vmalloc_struct *p)
p->next->prev = p->prev;
p->prev->next = p->next;
- kfree (p, sizeof (struct vmalloc_struct));
+ kfree ((vm_offset_t) p, sizeof (struct vmalloc_struct));
}
/* Allocate SIZE bytes of memory. The pages need not be contiguous. */