commit | 7b868e81be38d5ad4f4aa4be819a5fa543cc5ee8 | [log] [tgz] |
---|---|---|
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | Mon May 11 11:58:29 2015 +0530 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue May 12 11:04:29 2015 +1000 |
tree | 42fddf3b104664e76634117569eeaafc733731a7 | |
parent | 13bd817bb88499ce1dc1dfdaffcde17fa492aca5 [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>