svn commit: r256686 - stable/10/sys/ofed/include/linux

Alfred Perlstein alfred at FreeBSD.org
Thu Oct 17 14:08:47 UTC 2013


Author: alfred
Date: Thu Oct 17 14:08:46 2013
New Revision: 256686
URL: http://svnweb.freebsd.org/changeset/base/256686

Log:
  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

Modified:
  stable/10/sys/ofed/include/linux/gfp.h
Directory Properties:
  stable/10/sys/   (props changed)

Modified: stable/10/sys/ofed/include/linux/gfp.h
==============================================================================
--- stable/10/sys/ofed/include/linux/gfp.h	Thu Oct 17 13:28:57 2013	(r256685)
+++ stable/10/sys/ofed/include/linux/gfp.h	Thu Oct 17 14:08:46 2013	(r256686)
@@ -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);
 }
 
 /*


More information about the svn-src-stable-10 mailing list