diff --git a/mm/memory.c b/mm/memory.c index 160f5b503eaddeb5880cc0c4ac63c08821074e5c..7707187484ccce0b57b2d4bd333138b00fe479e7 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -467,7 +467,7 @@ copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm, */ if (is_cow_mapping(vm_flags)) { ptep_set_wrprotect(src_mm, addr, src_pte); - pte = *src_pte; + pte = pte_wrprotect(pte); } /*