patch-1.3.56 linux/fs/ncpfs/mmap.c

Next file: linux/fs/nfs/mmap.c
Previous file: linux/fs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.55/linux/fs/ncpfs/mmap.c linux/fs/ncpfs/mmap.c
@@ -31,15 +31,19 @@
  */
 static unsigned long 
 ncp_file_mmap_nopage(struct vm_area_struct * area,
-		     unsigned long address, unsigned long page, int no_share)
+		     unsigned long address, int no_share)
 {
 	struct inode * inode = area->vm_inode;
+	unsigned long page;
 	unsigned int clear;
 	unsigned long tmp;
 	int bufsize;
 	int pos;
 	unsigned short fs;
 
+	page = __get_free_page(GFP_KERNEL);
+	if (!page)
+		return page;
 	address &= PAGE_MASK;
 	pos = address - area->vm_start + area->vm_offset;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this