diff -urdN linux/fs/ncpfs/mmap.c linux/fs/ncpfs/mmap.c
--- linux/fs/ncpfs/mmap.c Thu Nov 11 21:32:44 1999
+++ linux/fs/ncpfs/mmap.c Thu Nov 11 22:08:06 1999
@@ -43,10 +43,10 @@
int bufsize;
int pos;
- page = __get_pages(GFP_KERNEL, 0);
- if (!page)
- return page;
- pg_addr = page_address(page);
+ pg_addr = __get_free_page(GFP_KERNEL);
+ if (!pg_addr)
+ return NULL;
+ page = mem_map + MAP_NR(pg_addr);
address &= PAGE_MASK;
pos = address - area->vm_start + (area->vm_pgoff << PAGE_SHIFT);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/