diff options
-rw-r--r-- | arch/x86/mm/pageattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 14e6119838a6..4c570612e24e 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -738,7 +738,7 @@ static int __should_split_large_page(pte_t *kpte, unsigned long address, | |||
738 | { | 738 | { |
739 | unsigned long numpages, pmask, psize, lpaddr, pfn, old_pfn; | 739 | unsigned long numpages, pmask, psize, lpaddr, pfn, old_pfn; |
740 | pgprot_t old_prot, new_prot, req_prot, chk_prot; | 740 | pgprot_t old_prot, new_prot, req_prot, chk_prot; |
741 | pte_t new_pte, old_pte, *tmp; | 741 | pte_t new_pte, *tmp; |
742 | enum pg_level level; | 742 | enum pg_level level; |
743 | 743 | ||
744 | /* | 744 | /* |
@@ -781,7 +781,7 @@ static int __should_split_large_page(pte_t *kpte, unsigned long address, | |||
781 | * Convert protection attributes to 4k-format, as cpa->mask* are set | 781 | * Convert protection attributes to 4k-format, as cpa->mask* are set |
782 | * up accordingly. | 782 | * up accordingly. |
783 | */ | 783 | */ |
784 | old_pte = *kpte; | 784 | |
785 | /* Clear PSE (aka _PAGE_PAT) and move PAT bit to correct position */ | 785 | /* Clear PSE (aka _PAGE_PAT) and move PAT bit to correct position */ |
786 | req_prot = pgprot_large_2_4k(old_prot); | 786 | req_prot = pgprot_large_2_4k(old_prot); |
787 | 787 | ||