diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2015-05-11 09:28:29 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-05-12 04:04:29 +0300 |
commit | 7b868e81be38d5ad4f4aa4be819a5fa543cc5ee8 (patch) | |
tree | 42fddf3b104664e76634117569eeaafc733731a7 /lib/mpi/mpiutil.c | |
parent | 13bd817bb88499ce1dc1dfdaffcde17fa492aca5 (diff) | |
download | linux-7b868e81be38d5ad4f4aa4be819a5fa543cc5ee8.tar.xz |
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 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions