We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f13dff commit 3d2f78fCopy full SHA for 3d2f78f
mm/mprotect.c
@@ -196,10 +196,11 @@ static unsigned long change_pte_range(struct mmu_gather *tlb,
196
pages++;
197
} else if (is_swap_pte(oldpte)) {
198
swp_entry_t entry = pte_to_swp_entry(oldpte);
199
- struct page *page = pfn_swap_entry_to_page(entry);
200
pte_t newpte;
201
202
if (is_writable_migration_entry(entry)) {
+ struct page *page = pfn_swap_entry_to_page(entry);
203
+
204
/*
205
* A protection check is difficult so
206
* just be safe and disable write
0 commit comments