patch-2.3.25 linux/drivers/char/mem.c
Next file: linux/drivers/char/misc.c
Previous file: linux/drivers/char/h8.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
Thu Oct 28 13:03:38 1999
- Orig file:
v2.3.24/linux/drivers/char/mem.c
- Orig date:
Fri Oct 22 13:21:48 1999
diff -u --recursive --new-file v2.3.24/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -190,10 +190,7 @@
static int mmap_mem(struct file * file, struct vm_area_struct * vma)
{
- unsigned long offset = vma->vm_offset;
-
- if (offset & ~PAGE_MASK)
- return -ENXIO;
+ unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
/*
* Accessing memory above the top the kernel knows about or
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)