diff options
Diffstat (limited to 'kernel/events/uprobes.c')
-rw-r--r-- | kernel/events/uprobes.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 6fda7996892b..23c562b7fc2e 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c | |||
@@ -239,9 +239,7 @@ retry: | |||
239 | if (ret) | 239 | if (ret) |
240 | goto unlock_out; | 240 | goto unlock_out; |
241 | 241 | ||
242 | lock_page(new_page); | ||
243 | ret = __replace_page(vma, vaddr, old_page, new_page); | 242 | ret = __replace_page(vma, vaddr, old_page, new_page); |
244 | unlock_page(new_page); | ||
245 | 243 | ||
246 | unlock_out: | 244 | unlock_out: |
247 | unlock_page(old_page); | 245 | unlock_page(old_page); |