patch-2.3.27 linux/kernel/ptrace.c
Next file: linux/kernel/resource.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Nov 11 10:33:42 1999
- Orig file:
v2.3.26/linux/kernel/ptrace.c
- Orig date:
Fri Oct 22 13:21:55 1999
diff -u --recursive --new-file v2.3.26/linux/kernel/ptrace.c linux/kernel/ptrace.c
@@ -50,15 +50,15 @@
flush_cache_page(vma, addr);
if (write) {
- maddr = kmap(page, KM_WRITE);
+ maddr = kmap(page);
memcpy((char *)maddr + (addr & ~PAGE_MASK), buf, len);
flush_page_to_ram(page);
- kunmap(maddr, KM_WRITE);
+ kunmap(page);
} else {
- maddr = kmap(page, KM_READ);
+ maddr = kmap(page);
memcpy(buf, (char *)maddr + (addr & ~PAGE_MASK), len);
flush_page_to_ram(page);
- kunmap(maddr, KM_READ);
+ kunmap(page);
}
return len;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)