diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 6fda7996892ba2703201fae6bf1cafde5bc14627..23c562b7fc2eb92d5fceeea7894241764837c2eb 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -239,9 +239,7 @@ static int write_opcode(struct arch_uprobe *auprobe, struct mm_struct *mm,
 	if (ret)
 		goto unlock_out;
 
-	lock_page(new_page);
 	ret = __replace_page(vma, vaddr, old_page, new_page);
-	unlock_page(new_page);
 
 unlock_out:
 	unlock_page(old_page);