summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/mce.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2015-05-11 11:58:29 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2015-05-12 11:04:29 +1000
commit7b868e81be38d5ad4f4aa4be819a5fa543cc5ee8 (patch)
tree42fddf3b104664e76634117569eeaafc733731a7 /arch/powerpc/kernel/mce.c
parent13bd817bb88499ce1dc1dfdaffcde17fa492aca5 (diff)
powerpc/mm: Return NULL for not present hugetlb page
We need to check whether pte is present in follow_huge_addr() and properly return NULL if mapping is not present. Also use READ_ONCE when dereferencing pte_t address. Without this patch, we may wrongly return a zero pfn page in follow_huge_addr(). Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/mce.c')
0 files changed, 0 insertions, 0 deletions