Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix __free_pages() in the linux shim.

__free_pages() is actaully supposed to take a "struct page *" not
an address.

MFC: 256546

Approved by:	re
  • Loading branch information...
commit 185f4102b2851a4b384f6c08679e118ef1962d58 1 parent c5f96af
@splbio splbio authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 sys/ofed/include/linux/gfp.h
View
6 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);
}
/*
Please sign in to comment.
Something went wrong with that request. Please try again.