diff options
-rw-r--r-- | kernel/ptrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 5f33cdb6fff5..d2cf144d0af5 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -242,8 +242,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in | |||
242 | if (write) { | 242 | if (write) { |
243 | copy_to_user_page(vma, page, addr, | 243 | copy_to_user_page(vma, page, addr, |
244 | maddr + offset, buf, bytes); | 244 | maddr + offset, buf, bytes); |
245 | if (!PageCompound(page)) | 245 | set_page_dirty_lock(page); |
246 | set_page_dirty_lock(page); | ||
247 | } else { | 246 | } else { |
248 | copy_from_user_page(vma, page, addr, | 247 | copy_from_user_page(vma, page, addr, |
249 | buf, maddr + offset, bytes); | 248 | buf, maddr + offset, bytes); |