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);
 }
 
 /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to