patch-2.2.15 linux/arch/s390/kernel/ptrace.c

Next file: linux/arch/s390/kernel/reipl.S
Previous file: linux/arch/s390/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/arch/s390/kernel/ptrace.c linux/arch/s390/kernel/ptrace.c
@@ -2,7 +2,7 @@
  *  arch/s390/kernel/ptrace.c
  *
  *  S390 version
- *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
+ *    Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation
  *    Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com),
  *
  *  Based on PowerPC version 
@@ -226,7 +226,9 @@
 static int read_long(struct task_struct * tsk, unsigned long addr,
 	unsigned long * result)
 {
-	struct vm_area_struct * vma = find_extend_vma(tsk, addr);
+	struct vm_area_struct * vma;
+	addr=ADDR_BITS_REMOVE(addr);
+	vma= find_extend_vma(tsk, addr);
 
 	if (!vma)
 		return -EIO;
@@ -268,7 +270,10 @@
 static int write_long(struct task_struct * tsk, unsigned long addr,
 	unsigned long data)
 {
-	struct vm_area_struct * vma = find_extend_vma(tsk, addr);
+	struct vm_area_struct * vma;
+
+	addr=ADDR_BITS_REMOVE(addr);
+	vma = find_extend_vma(tsk, addr);
 
 	if (!vma)
 		return -EIO;

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