diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-01-29 01:41:54 +0000 |
commit | f969d69ba9f952e5bdd38278e25e26a3e4a61a70 (patch) | |
tree | b3530d803df59d726afaabebc6626987dee1ca05 /kernel/ptrace.c | |
parent | a10ce7ef2066b455d69187643ddf2073bfc4db24 (diff) |
Merge with 2.3.27.
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 4945a0223..2980059b2 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -50,15 +50,15 @@ repeat: 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; |