patch-2.4.19 linux-2.4.19/arch/ppc/kernel/syscalls.c

Next file: linux-2.4.19/arch/ppc/kernel/time.c
Previous file: linux-2.4.19/arch/ppc/kernel/smp.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/ppc/kernel/syscalls.c linux-2.4.19/arch/ppc/kernel/syscalls.c
@@ -1,5 +1,5 @@
 /*
- * BK Id: SCCS/s.syscalls.c 1.11 10/16/01 15:58:42 trini
+ * BK Id: SCCS/s.syscalls.c 1.13 03/13/02 09:12:22 trini
  */
 /*
  * linux/arch/ppc/kernel/sys_ppc.c
@@ -223,11 +223,12 @@
 		       unsigned long fd, off_t offset)
 {
 	int err = -EINVAL;
+	unsigned long off = offset;
 
 	if (offset & ~PAGE_MASK)
 		goto out;
 
-	err = do_mmap2(addr, len, prot, flags, fd, offset >> PAGE_SHIFT);
+	err = do_mmap2(addr, len, prot, flags, fd, off >> PAGE_SHIFT);
 out:
 	return err;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)