summaryrefslogtreecommitdiffstats
path: root/sys/ofed
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2013-10-15 15:50:43 +0000
committeralfred <alfred@FreeBSD.org>2013-10-15 15:50:43 +0000
commit31d9407b2d79f52546f937b585ad86afe9f38d21 (patch)
tree85cd380c1989a4f5aa5d500461f2d9ab84b8c3af /sys/ofed
parenteab8a23e6686ae725727d079fb6ab8658ebfa9e4 (diff)
downloadFreeBSD-src-31d9407b2d79f52546f937b585ad86afe9f38d21.zip
FreeBSD-src-31d9407b2d79f52546f937b585ad86afe9f38d21.tar.gz
Fix __free_pages() in the linux shim.
__free_pages() is actaully supposed to take a "struct page *" not an address.
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/include/linux/gfp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ofed/include/linux/gfp.h b/sys/ofed/include/linux/gfp.h
index e88df78..f974956 100644
--- a/sys/ofed/include/linux/gfp.h
+++ b/sys/ofed/include/linux/gfp.h
@@ -92,14 +92,14 @@ __free_page(struct page *m)
}
static inline void
-__free_pages(void *p, unsigned int order)
+__free_pages(struct page *m, unsigned int order)
{
size_t size;
- if (p == 0)
+ if (m == NULL)
return;
size = PAGE_SIZE << order;
- kmem_free(kmem_arena, (vm_offset_t)p, size);
+ kmem_free(kmem_arena, (vm_offset_t)page_address(m), size);
}
/*
OpenPOWER on IntegriCloud