diff options
author | Toshi Kani <toshi.kani@hpe.com> | 2015-09-17 12:24:21 -0600 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-09-22 21:27:33 +0200 |
commit | daf3e35c5888e8bd6a2f5ed15ed392b2df362ecf (patch) | |
tree | 25cd9853a171e0691de368b90336b8b8d29e47b7 /arch/x86/crypto/sha256_ssse3_glue.c | |
parent | 34437e67a6727885bdf6cbfd8441b1ac43a1ee65 (diff) | |
download | op-kernel-dev-daf3e35c5888e8bd6a2f5ed15ed392b2df362ecf.zip op-kernel-dev-daf3e35c5888e8bd6a2f5ed15ed392b2df362ecf.tar.gz |
x86/mm: Fix gup_huge_p?d() to handle large PAT bit
gup_huge_pud() and gup_huge_pmd() cast *pud and *pmd to *pte,
and use pte_xxx() interfaces to obtain the flags and PFN.
However, the pte_xxx() interface does not handle the large
PAT bit properly for PUD/PMD.
Fix gup_huge_pud() and gup_huge_pmd() to use pud_xxx() and
pmd_xxx() interfaces according to their type.
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
Cc: Robert Elliot <elliott@hpe.com>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/1442514264-12475-9-git-send-email-toshi.kani@hpe.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/crypto/sha256_ssse3_glue.c')
0 files changed, 0 insertions, 0 deletions