Commit 4e3663d7 authored by Linus Torvalds's avatar Linus Torvalds

Since "access_process_vm()" releases pages that can be

in the page cache, it needs to use page_cache_release()
instead of plain "put_page()".
parent 06ba030a
...@@ -156,7 +156,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in ...@@ -156,7 +156,7 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, in
flush_page_to_ram(page); flush_page_to_ram(page);
} }
kunmap(page); kunmap(page);
put_page(page); page_cache_release(page);
len -= bytes; len -= bytes;
buf += bytes; buf += bytes;
addr += bytes; addr += bytes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment