patch-2.4.0-test11 linux/kernel/ptrace.c

Next file: linux/kernel/resource.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/kernel/ptrace.c linux/kernel/ptrace.c
@@ -24,7 +24,7 @@
 	pgd_t * pgdir;
 	pmd_t * pgmiddle;
 	pte_t * pgtable;
-	unsigned long maddr; 
+	char *maddr; 
 	struct page *page;
 
 repeat:
@@ -54,13 +54,13 @@
 
 	if (write) {
 		maddr = kmap(page);
-		memcpy((char *)maddr + (addr & ~PAGE_MASK), buf, len);
+		memcpy(maddr + (addr & ~PAGE_MASK), buf, len);
 		flush_page_to_ram(page);
 		flush_icache_page(vma, page);
 		kunmap(page);
 	} else {
 		maddr = kmap(page);
-		memcpy(buf, (char *)maddr + (addr & ~PAGE_MASK), len);
+		memcpy(buf, maddr + (addr & ~PAGE_MASK), len);
 		flush_page_to_ram(page);
 		kunmap(page);
 	}

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